<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Field Maps arcade editor Concatenate in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280241#M836</link>
    <description>&lt;P&gt;Hector,&lt;/P&gt;&lt;P&gt;This may be what you are looking for then.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(IsEmpty($feature.Status)){
    return $feature.SCC_ID
}
return $feature.SCC_ID + '-' + $feature.Status&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 19 Apr 2023 15:31:44 GMT</pubDate>
    <dc:creator>Jake_S</dc:creator>
    <dc:date>2023-04-19T15:31:44Z</dc:date>
    <item>
      <title>ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280098#M826</link>
      <description>&lt;P&gt;Good morning Community,&lt;/P&gt;&lt;P&gt;I have been working with ArcGIS for a number of year but have only just started to venture into creating my own more complicated content. Specifically survey forms and asset inspection reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Field Maps to create a asset inspection reporting system. My result is to change the symbology based on if the asset has been inspected. I have already defined a symbology that needs to be viewed by the field workers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution to this is to create a new field with a concatenated input and define the symbology based on this. I have the following fields;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CUT_REGIME&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$feature.Parcel_State&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I would like the end result to read&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$feature.CUT_REGIME ' - '&amp;nbsp;$feature.Parcel_State&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&amp;nbsp;$feature.Parcel_State is blank/empty then I would like it to read 'incomplete'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I see that this may be a simple piece of Arcade for someone and would really appreciate some help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks very much.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;At the moment i have managed to put the following together but it is not working.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Concatenate($feature.CUT_REGIME,&lt;BR /&gt;IsEmpty(&lt;BR /&gt;// Returns true(' - ','Incomplete')&lt;BR /&gt;// Returns false(' - ',$feature.Parce_State')&lt;BR /&gt;))));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Apr 2023 08:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280098#M826</guid>
      <dc:creator>GIS_Ecologist</dc:creator>
      <dc:date>2023-04-19T08:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280120#M827</link>
      <description>&lt;P&gt;Hector,&lt;/P&gt;&lt;P&gt;Give this a go.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(IsEmpty($feature.CUT_REGIME)){
    return $feature.Parcel_State + ' - Incomplete'
}
return $feature.CUT_REGIME + ' - ' + $feature.Parcel_State&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280120#M827</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2023-04-19T12:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280124#M828</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply, it is much appreciated. I will try this now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if this type of expression can be set to be a recurring calculation based on a set time period. For example every 60 seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280124#M828</guid>
      <dc:creator>GIS_Ecologist</dc:creator>
      <dc:date>2023-04-19T12:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280129#M829</link>
      <description>&lt;P&gt;Hector,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Attribute rules trigger on insert, update, or delete. So some action would be required to the feature this rule is applied to. There is no way to trigger rules directly by a timer. Batch calculation rules also would not work because batch calculation and validation rules are evaluated at a user-specified time using the Error Inspector or the Evaluate Rules tool. So this would require a person to click and review every 60 seconds.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That being said, I have seen organizations add a field to the feature class and have a script that runs via task manager that updates that field with some arbitrary value. This will trigger attribute rules that do not have any restrictors that prevent an update when edited (e.g. below)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (($editcontext.editType == "UPDATE" &amp;amp;&amp;amp; Equals(Geometry($originalFeature),Geometry($feature)))) {
return ;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, the rule provided to you would trigger if&amp;nbsp;$feature.CUT_REGIME was updated at any time. So if one of the field workers updated that field&lt;/P&gt;&lt;P&gt;~Jake&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280129#M829</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2023-04-19T12:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280138#M830</link>
      <description>&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this particular case, workers would be updating the '$feature.Parcel_State' field with whether it has been&amp;nbsp;completed or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where would I put this expression? My assumption would be to create a 'text - single line' form element, set the field calculated value and then input the expression into that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would that be correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been playing around with changing the symbology of the web map to show if parcels have been completed or not but this doesn't seem to be the most efficient way of doing this.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280138#M830</guid>
      <dc:creator>GIS_Ecologist</dc:creator>
      <dc:date>2023-04-19T12:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280145#M831</link>
      <description>&lt;P&gt;Hector,&lt;/P&gt;&lt;P&gt;Yes you can apply this to a form element calculation.&lt;BR /&gt;&lt;BR /&gt;Also you can setup rules to fire when another field is updated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($editcontext.editType == "UPDATE" &amp;amp;&amp;amp; ($originalFeature.Parcel_State == $feature.Parcel_State)){
     return ;

if(IsEmpty($feature.CUT_REGIME)){
    return $feature.Parcel_State + ' - Incomplete'
}
return $feature.CUT_REGIME + ' - ' + $feature.Parcel_State&lt;/LI-CODE&gt;&lt;P&gt;In the rule above if the feature is being updated AND the original Parcel_State is the same as the current value don't do anything. So this means is there is an update to the feature and the Parcel_State has changed run the rule.&lt;BR /&gt;&lt;BR /&gt;~jake&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 13:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280145#M831</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2023-04-19T13:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280180#M832</link>
      <description>&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I wanted the field to display the '$feature.CUT_REGIME' alone and then update it with a '- Complete' once the '$feature.Parcel_State' is update by the worker.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would allow me to set the symbology based off this field alone and it would capture everything I need.&lt;/P&gt;&lt;P&gt;It is displaying an error at the moment.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EcologistHector_0-1681914331055.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68396i761BA53D51D1B3E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EcologistHector_0-1681914331055.png" alt="EcologistHector_0-1681914331055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Hector&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280180#M832</guid>
      <dc:creator>GIS_Ecologist</dc:creator>
      <dc:date>2023-04-19T14:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280212#M833</link>
      <description>&lt;P&gt;Hector,&lt;/P&gt;&lt;P&gt;The error at the moment is caused by the code missing a } after the first return. add a } to line 3.&lt;BR /&gt;&lt;BR /&gt;~Jake&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280212#M833</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2023-04-19T14:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280216#M834</link>
      <description>&lt;P&gt;Hector,&lt;/P&gt;&lt;P&gt;I'm a bit confused now to what you are looking to populate in the&amp;nbsp;&lt;SPAN&gt;CUT_REGIME field.&lt;BR /&gt;&lt;BR /&gt;Your original post said you wanted&amp;nbsp;&lt;SPAN&gt;$feature.CUT_REGIME ' - '&amp;nbsp;$feature.Parcel_State but now you want&amp;nbsp;$feature.CUT_REGIME' alone and then update it with a '- Complete'?&lt;BR /&gt;&lt;BR /&gt;~jake&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280216#M834</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2023-04-19T14:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280226#M835</link>
      <description>&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes apologies, I see the mistake I made. I was trying to populate the wrong field. Thank you for noticing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have amended the expression to:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1. $feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SCC_ID&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2. '-'&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3. $feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Status&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is working to populate the text I need. However,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I require lines 2 and 3 to not appear if '$feature.Status' is blank.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Slightly simpler expression than what I thought I needed.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kind regards.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 15:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280226#M835</guid>
      <dc:creator>GIS_Ecologist</dc:creator>
      <dc:date>2023-04-19T15:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280241#M836</link>
      <description>&lt;P&gt;Hector,&lt;/P&gt;&lt;P&gt;This may be what you are looking for then.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(IsEmpty($feature.Status)){
    return $feature.SCC_ID
}
return $feature.SCC_ID + '-' + $feature.Status&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Apr 2023 15:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1280241#M836</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2023-04-19T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Field Maps arcade editor Concatenate</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1283770#M865</link>
      <description>&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This expression worked for my need. appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hector&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 11:22:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/arcgis-field-maps-arcade-editor-concatenate/m-p/1283770#M865</guid>
      <dc:creator>GIS_Ecologist</dc:creator>
      <dc:date>2023-04-28T11:22:08Z</dc:date>
    </item>
  </channel>
</rss>

