<?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: Removing ; from the start of output for Attribute Rule in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/removing-from-the-start-of-output-for-attribute/m-p/1344192#M1164</link>
    <description>&lt;P&gt;Try using an array to collect your values and then use Concatenate&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var proj_nums = []

for (var projB_row in projB) {
    Push(proj_nums, projB_row.project_number)
}
return Concatenate(proj_nums, "; ")&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 31 Oct 2023 22:39:02 GMT</pubDate>
    <dc:creator>TedHoward2</dc:creator>
    <dc:date>2023-10-31T22:39:02Z</dc:date>
    <item>
      <title>Removing ; from the start of output for Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/removing-from-the-start-of-output-for-attribute/m-p/1344182#M1162</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to edit my attribute rule to remove the ';' that is produced at the start of my result.&lt;/P&gt;&lt;P&gt;I am attempting to ensure that whenever a new Project A polygon is created, that the project_number field for any intersecting polygons from Project B is populated for the project_number field in Project A. This includes when multiple projects from Project B are intersecting with Project A. It works with the logic, but the output produces a ; at the beginning of the output.&lt;/P&gt;&lt;P&gt;The attribute rule I've applied to my Projects_A class is producing an output like the below:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Projects: ; PP-2023-1234; PP-2023-2345&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;var projB = Intersects(FeatureSetByName($datastore, 'Projects_B', ['project_number']), $feature)&lt;/P&gt;&lt;P&gt;var proj_nums&lt;/P&gt;&lt;P&gt;for (var projB_row in projB) {&lt;BR /&gt;proj_nums = proj_nums + ';' + ' ' + projB_row.project_number&lt;BR /&gt;}&lt;BR /&gt;return proj_nums&lt;BR /&gt;&lt;BR /&gt;Is there a way to alter the above to ensure that the ; is removed from the resulting output start, and only in the middle to separate multiple project_numbers?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 21:59:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/removing-from-the-start-of-output-for-attribute/m-p/1344182#M1162</guid>
      <dc:creator>Boomer1187</dc:creator>
      <dc:date>2023-10-31T21:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing ; from the start of output for Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/removing-from-the-start-of-output-for-attribute/m-p/1344192#M1164</link>
      <description>&lt;P&gt;Try using an array to collect your values and then use Concatenate&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var proj_nums = []

for (var projB_row in projB) {
    Push(proj_nums, projB_row.project_number)
}
return Concatenate(proj_nums, "; ")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 Oct 2023 22:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/removing-from-the-start-of-output-for-attribute/m-p/1344192#M1164</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2023-10-31T22:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Removing ; from the start of output for Attribute Rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/removing-from-the-start-of-output-for-attribute/m-p/1347456#M1175</link>
      <description>&lt;P&gt;Thanks so much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/147940"&gt;@TedHoward2&lt;/a&gt;&amp;nbsp;- that worked perfectly!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 21:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/removing-from-the-start-of-output-for-attribute/m-p/1347456#M1175</guid>
      <dc:creator>Boomer1187</dc:creator>
      <dc:date>2023-11-08T21:54:57Z</dc:date>
    </item>
  </channel>
</rss>

