<?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 Refresh an auto-incrementing attribute in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/refresh-an-auto-incrementing-attribute/m-p/434958#M5261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on a solution that requires me to submit an inspection to a layer and this inspection may contain one or more defects that are added to a defect layer. The relationship between the two feature layers is already set up on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Due to client restrictions, the latest version of the SDK I am able to use is 100.2.1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When an inspection is submitted, the field &lt;EM&gt;INSPECTION_ID&lt;/EM&gt; is automatically populated with an auto-incrementing value. Since this value is set at the server side, I need to refresh the local copy to fetch this new value. The current version of the SDK includes a Refresh() method on the feature, however this isn't available and the closest I can find in 100.2.1 is the RefreshObjectId() method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried some alternatives such as LoadAsync() and RetryLoadAsync() but the inspection id attribute seems to remain null. If I lookup the record on the REST explorer in a browser then I can see an id has been generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried experimenting with the RelateFeature() method, but that doesn't seem to help at all either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an alternative way of being able to fetch all the updated attributes after creating a feature at all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 14:37:53 GMT</pubDate>
    <dc:creator>BenShort</dc:creator>
    <dc:date>2020-11-02T14:37:53Z</dc:date>
    <item>
      <title>Refresh an auto-incrementing attribute</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/refresh-an-auto-incrementing-attribute/m-p/434958#M5261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on a solution that requires me to submit an inspection to a layer and this inspection may contain one or more defects that are added to a defect layer. The relationship between the two feature layers is already set up on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Due to client restrictions, the latest version of the SDK I am able to use is 100.2.1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When an inspection is submitted, the field &lt;EM&gt;INSPECTION_ID&lt;/EM&gt; is automatically populated with an auto-incrementing value. Since this value is set at the server side, I need to refresh the local copy to fetch this new value. The current version of the SDK includes a Refresh() method on the feature, however this isn't available and the closest I can find in 100.2.1 is the RefreshObjectId() method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried some alternatives such as LoadAsync() and RetryLoadAsync() but the inspection id attribute seems to remain null. If I lookup the record on the REST explorer in a browser then I can see an id has been generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried experimenting with the RelateFeature() method, but that doesn't seem to help at all either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an alternative way of being able to fetch all the updated attributes after creating a feature at all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/refresh-an-auto-incrementing-attribute/m-p/434958#M5261</guid>
      <dc:creator>BenShort</dc:creator>
      <dc:date>2020-11-02T14:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh an auto-incrementing attribute</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/refresh-an-auto-incrementing-attribute/m-p/434959#M5262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Support for related features are (as you found) quite limited in the earlier releases. I realized you're constrained wrt moving up versions, but it might be worth pointing out to your client that 100.2.1 is in mature support at this point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 18:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/refresh-an-auto-incrementing-attribute/m-p/434959#M5262</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-11-02T18:18:36Z</dc:date>
    </item>
  </channel>
</rss>

