<?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: Generating AddressIDs When Adding Geometry via the Web in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/generating-addressids-when-adding-geometry-via-the/m-p/632732#M16730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Let me begin by saying this is not an easy task. The way I have seen people doing this is through a database trigger. Here are some threads on this subject:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/165180"&gt;Creating a sequential Unique ID when a new feature is added&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/103789"&gt;Auto-Increment Field within SDE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=6997e32c54bd40ca8ca13e1fdaf5948b" title="https://www.arcgis.com/home/item.html?id=6997e32c54bd40ca8ca13e1fdaf5948b"&gt;https://www.arcgis.com/home/item.html?id=6997e32c54bd40ca8ca13e1fdaf5948b&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2018 14:02:29 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-11-14T14:02:29Z</dc:date>
    <item>
      <title>Generating AddressIDs When Adding Geometry via the Web</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/generating-addressids-when-adding-geometry-via-the/m-p/632731#M16729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aloha All,&lt;/P&gt;&lt;P&gt;Our addressing technicians (who are not GIS schooled/trained) maintain address points via a simple ArcGIS for Portal web mapping application.&amp;nbsp;NOTE: I have not had time to research, implement and then train our technicians on how to efficiently use this solution: &lt;A class="link-titled" href="https://solutions.arcgis.com/local-government/help/address-management/" title="https://solutions.arcgis.com/local-government/help/address-management/"&gt;Address Data Management | ArcGIS Solutions for Local Government&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, we are now trying to update some of our enterprise systems and are in the middle of developing a new planning and permitting system that essentially brings quite a few gis layers together, parcels, streets, address points, etc. We now need to assign and maintain ADDRESSIDs and while this can be accomplished through Attribute Assistant (AA), as I previously mentioned, our technicians are not using ArcMAP and I am not aware of any way AA can be utilized in this instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are a 10.6.1 deployment with 3 MSSQL 2012 SDE instances called Gisedit, Staging, and Production. Currently, the aforementioned web mapping&amp;nbsp;application&amp;nbsp;writes to the Gisedit instance and then nightly scripts update the data to Production. From Production, REST services are built to be consumed by our new enterprise planning and permitting solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the $64,000 question is how do you assign and maintain ADDRESSIDs when creating geometries via a web application? In other words, when a new record is inserted, via a browser, how do we assign a unique, non-repeating ID to each address point upon creation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mahalo!&lt;/P&gt;&lt;P&gt;Dan Sereno&lt;/P&gt;&lt;P&gt;County of Maui&lt;/P&gt;&lt;P&gt;Enterprise GIS Manager&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 01:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/generating-addressids-when-adding-geometry-via-the/m-p/632731#M16729</guid>
      <dc:creator>DanielSereno</dc:creator>
      <dc:date>2018-11-14T01:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Generating AddressIDs When Adding Geometry via the Web</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/generating-addressids-when-adding-geometry-via-the/m-p/632732#M16730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Let me begin by saying this is not an easy task. The way I have seen people doing this is through a database trigger. Here are some threads on this subject:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/165180"&gt;Creating a sequential Unique ID when a new feature is added&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/103789"&gt;Auto-Increment Field within SDE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=6997e32c54bd40ca8ca13e1fdaf5948b" title="https://www.arcgis.com/home/item.html?id=6997e32c54bd40ca8ca13e1fdaf5948b"&gt;https://www.arcgis.com/home/item.html?id=6997e32c54bd40ca8ca13e1fdaf5948b&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:02:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/generating-addressids-when-adding-geometry-via-the/m-p/632732#M16730</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-14T14:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generating AddressIDs When Adding Geometry via the Web</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/generating-addressids-when-adding-geometry-via-the/m-p/632733#M16731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aloha Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;Utilizing the URLs you provided I was able to setup a sequence and trigger to generate an AddressID for each address point added via our web based addressing application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the two SQL statement that I ran (SITEADDRESSPOINT is the table where our addresses live and ADDPTKEY is the addressID field I was looking to populate):&lt;/P&gt;&lt;P&gt;CREATE SEQUENCE dsa.seq_addressid&lt;BR /&gt;START WITH 176000&lt;BR /&gt;INCREMENT BY 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE TRIGGER dsa.trg_insert_addressid&lt;BR /&gt; ON dsa.SITEADDRESSPOINT&lt;BR /&gt; FOR INSERT &lt;BR /&gt;AS &lt;BR /&gt;BEGIN &lt;BR /&gt; SET NOCOUNT ON; &lt;BR /&gt; DECLARE @ID float &lt;BR /&gt; IF (SELECT INSERTED.ADDPTKEY FROM INSERTED) IS NULL&lt;BR /&gt; BEGIN&lt;BR /&gt; SELECT @ID = (NEXT VALUE FOR dsa.seq_addressid)&lt;BR /&gt; SELECT @ID &lt;BR /&gt; UPDATE dsa.SITEADDRESSPOINT&lt;BR /&gt; SET ADDPTKEY = @ID + 1 &lt;BR /&gt; WHERE OBJECTID IN (SELECT OBJECTID FROM INSERTED) &lt;BR /&gt; END&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Mahalo!&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Dan Sereno&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;County of Maui&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Enterprise GIS Manager&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 01:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/generating-addressids-when-adding-geometry-via-the/m-p/632733#M16731</guid>
      <dc:creator>DanielSereno</dc:creator>
      <dc:date>2018-11-15T01:31:38Z</dc:date>
    </item>
  </channel>
</rss>

