<?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: Arcade expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression/m-p/1248592#M64284</link>
    <description>&lt;P&gt;Create a database sequence:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-sequence.htm" target="_blank"&gt;Create Database Sequence (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Use this expression in the attribute rule:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Calculation Attribute Rule for the ID field
// triggers: Insert, Update
// Exclude from application evaluation

// If there is already a value in the ID field, return that
if(!IsEmpty($feature.AssetNumber)) {
    return $feature.AssetNumber
}

// get all the parts for the unique id, format them correctly
var parts = [
    $feature.RoadType,
    Text($feature.Location, "00"),
    Text($feature.Sublocation, "00"),
    "-",
    Text(NextSequenceValue("NameOfTheSequence"), "0000")
]

// concatenate and return
return Concatenate(parts, "")&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 17 Jan 2023 07:42:35 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-01-17T07:42:35Z</dc:date>
    <item>
      <title>Arcade expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression/m-p/1248534#M64274</link>
      <description>&lt;P&gt;I want to create unique asset nr using Arcade expression to display the numbers and letters from domain field and a sequence number&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;Road_type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; → CR&lt;/P&gt;&lt;P&gt;Location&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; → 01&lt;/P&gt;&lt;P&gt;Sublocation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; → 22&lt;/P&gt;&lt;P&gt;CR0122-0001&lt;/P&gt;&lt;P&gt;CR0117-0002&lt;/P&gt;&lt;P&gt;CR0251-0003&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 19:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression/m-p/1248534#M64274</guid>
      <dc:creator>MiltonVrolijk</dc:creator>
      <dc:date>2023-01-16T19:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression/m-p/1248592#M64284</link>
      <description>&lt;P&gt;Create a database sequence:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-sequence.htm" target="_blank"&gt;Create Database Sequence (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Use this expression in the attribute rule:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Calculation Attribute Rule for the ID field
// triggers: Insert, Update
// Exclude from application evaluation

// If there is already a value in the ID field, return that
if(!IsEmpty($feature.AssetNumber)) {
    return $feature.AssetNumber
}

// get all the parts for the unique id, format them correctly
var parts = [
    $feature.RoadType,
    Text($feature.Location, "00"),
    Text($feature.Sublocation, "00"),
    "-",
    Text(NextSequenceValue("NameOfTheSequence"), "0000")
]

// concatenate and return
return Concatenate(parts, "")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Jan 2023 07:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression/m-p/1248592#M64284</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-17T07:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression/m-p/1248652#M64292</link>
      <description>&lt;P&gt;Thanks, Johanes&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 12:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-expression/m-p/1248652#M64292</guid>
      <dc:creator>MiltonVrolijk</dc:creator>
      <dc:date>2023-01-17T12:52:47Z</dc:date>
    </item>
  </channel>
</rss>

