<?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: Xamarin: Feature Layer not returning custom Attributes in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511614#M6298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By custom attributes, do you mean the service does not define these fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you working with ServiceFeatureTable? If yes, there is a LoadAll&amp;nbsp;that will return all fields defined by service, the other QueryFeatures method will return minimum set of attributes (i.e.&amp;nbsp;objectIdField,&amp;nbsp;typeIdField,&amp;nbsp;fields used for rendering, etc.) &lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/T_Esri_ArcGISRuntime_Data_QueryFeatureFields.htm"&gt;https://developers.arcgis.com/net/latest/wpf/api-reference//html/T_Esri_ArcGISRuntime_Data_QueryFeatureFields.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Apr 2017 22:10:03 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2017-04-25T22:10:03Z</dc:date>
    <item>
      <title>Xamarin: Feature Layer not returning custom Attributes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511613#M6297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to Query a Feature Layer, but only the core ESRI attributes are being returned. How do i get all of the attributes? If i look at the Fields property of the feature layer (_featureLayer below) i am querying, it does list all the custom fields available, but they just aren't returning when i do a query. There isn't a "OutFields" property in the QueryParameters object that I can see...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; query &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;QueryParameters&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; Geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; TreeMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;VisibleArea&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; SpatialRelationship &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialRelationship&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Contains&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; ReturnGeometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

_featureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ClearSelection&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; queryResult &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; _featureTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;QueryFeaturesAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; features &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; queryResult&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToList&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;foreach&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; features&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;//*** EACH item has only 7 attributes, and they are only the ESRI core ones&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511613#M6297</guid>
      <dc:creator>brianbullas</dc:creator>
      <dc:date>2021-12-11T22:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin: Feature Layer not returning custom Attributes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511614#M6298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By custom attributes, do you mean the service does not define these fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you working with ServiceFeatureTable? If yes, there is a LoadAll&amp;nbsp;that will return all fields defined by service, the other QueryFeatures method will return minimum set of attributes (i.e.&amp;nbsp;objectIdField,&amp;nbsp;typeIdField,&amp;nbsp;fields used for rendering, etc.) &lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/T_Esri_ArcGISRuntime_Data_QueryFeatureFields.htm"&gt;https://developers.arcgis.com/net/latest/wpf/api-reference//html/T_Esri_ArcGISRuntime_Data_QueryFeatureFields.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 22:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511614#M6298</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2017-04-25T22:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin: Feature Layer not returning custom Attributes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511615#M6299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aye, that's it thanks.&lt;/P&gt;&lt;P&gt;Yes, working with a ServiceFeatureTable. All 50 attributes now returning. Not sure how i missed that overload.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; queryResult &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; _featureTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;QueryFeaturesAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;QueryFeatureFields&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LoadAll&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 22:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511615#M6299</guid>
      <dc:creator>brianbullas</dc:creator>
      <dc:date>2017-04-25T22:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin: Feature Layer not returning custom Attributes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511616#M6300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be helpful to include this option in the samples, as I think most people would expect LoadAll to be the default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511616#M6300</guid>
      <dc:creator>DavidHaines</dc:creator>
      <dc:date>2017-12-08T22:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin: Feature Layer not returning custom Attributes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511617#M6301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any similar method if I am working with FeatureLayer from mmpk?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 12:12:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511617#M6301</guid>
      <dc:creator>DavidPeña1</dc:creator>
      <dc:date>2018-05-18T12:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin: Feature Layer not returning custom Attributes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511618#M6302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should get all the properties directly since you are working with GeodatabaseFeatureTable. You can make sure that the features you use are loaded though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 10:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511618#M6302</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2018-05-21T10:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin: Feature Layer not returning custom Attributes</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511619#M6303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While the overload with `QueryFeatureFields` is only on `ServiceFeatureTable`. As Antti noted, features must be loaded. `LoadAsync` on `ArcGISFeature` will do this as well, load all of feature attributes. This is available on features belonging to an `ArcGISFeatureTable` (i.e. ServiceFeatureTable, GeodatabaseFeatureTable).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 16:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-feature-layer-not-returning-custom/m-p/511619#M6303</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2018-05-21T16:49:27Z</dc:date>
    </item>
  </channel>
</rss>

