<?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: Trouble getting attributes to go to the server in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354660#M4174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob, you are awesome.&amp;nbsp; Thank you so much for this reply.&amp;nbsp; I have been attempting to get attributes to sync to my feature service for the past 4 hours and I couldn't figure out how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI, this is a problem that needs to be fixed, we shouldn't have to explicitly add the OutFields to a feature class when we are getting the table info from the Feature Service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 19:35:10 GMT</pubDate>
    <dc:creator>SpencerSmith3</dc:creator>
    <dc:date>2016-04-12T19:35:10Z</dc:date>
    <item>
      <title>Trouble getting attributes to go to the server</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354658#M4172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody else having trouble getting attributes to go to the server when creating records on a table hosted in a feature service?&amp;nbsp; Here is a code snippet for it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ServiceFeatureTable _sft = await ServiceFeatureTable.OpenAsync(myFeatureServicePath);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GeodatabaseFeature gf = new GeodatabaseFeature(_sft.Schema);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;gf.Attributes["WR_ID"] = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// more attributes go here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if (_sft.CanAddFeature(gf))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; long oid = await _sft.AddAsync(gf);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FeatureEditResult fer = await _sft.ApplyEditsAsync(false);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;foreach (FeatureEditResultItem ri in fer.AddResults)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if (ri.Error != null || !ri.Success)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; return false;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;return true;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I am running ArcGIS Runtime for .NET 10.2.5 with a feature service running on ArcGIS Server 10.2.2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;When I use fiddler, the ApplyEditsAsync only sends up the ObjectID attribute and you don't see any other attributes I might have in there.&amp;nbsp; I'm not sure why I don't get other attributes (like WR_ID, in this case) to go.&amp;nbsp; Any ideas?&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 18:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354658#M4172</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-03-23T18:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting attributes to go to the server</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354659#M4173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case anybody is interested, this was a holdover from the 10.2.4 release of the SDK.&amp;nbsp; The solution was to specify values for the OutFields collection on the ServiceFeatureTable object.&amp;nbsp; Here is the laziest way I could come up with getting all of the fields to be available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp; _sft = await ServiceFeatureTable.OpenAsync(fl);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp; if (_sft.OutFields == null)&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _sft.OutFields = new Esri.ArcGISRuntime.Tasks.Query.OutFields();&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp; foreach (FieldInfo fi in _sft.Schema.Fields)&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _sft.OutFields.Add(fi.Name);&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 20:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354659#M4173</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-03-25T20:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting attributes to go to the server</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354660#M4174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob, you are awesome.&amp;nbsp; Thank you so much for this reply.&amp;nbsp; I have been attempting to get attributes to sync to my feature service for the past 4 hours and I couldn't figure out how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI, this is a problem that needs to be fixed, we shouldn't have to explicitly add the OutFields to a feature class when we are getting the table info from the Feature Service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 19:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354660#M4174</guid>
      <dc:creator>SpencerSmith3</dc:creator>
      <dc:date>2016-04-12T19:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting attributes to go to the server</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354661#M4175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback. We recognised the 10.2.X OutFields design/behavior could be improved&amp;nbsp;and have re-designed how this works for the next major release of ArcGIS Runtime SDK for .NET (codenamed "Quartz") which will be available later this year.&amp;nbsp;In summary, we know which fields are required for rendering, labeling, etc and can manage that&amp;nbsp;for you instead of you having to request specific or all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the easiest way to get all fields in in 10.2.X is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;PRE style="color: black; background: white; font-size: 16;"&gt;myFeatureTable.OutFields&amp;nbsp;=&amp;nbsp;Esri.ArcGISRuntime.Tasks.Query.&lt;SPAN style="color: #2b91af;"&gt;OutFields&lt;/SPAN&gt;.All;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 17:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/trouble-getting-attributes-to-go-to-the-server/m-p/354661#M4175</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2016-09-02T17:19:35Z</dc:date>
    </item>
  </channel>
</rss>

