<?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 Set Out Fields. in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/set-out-fields/m-p/679647#M4726</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;I want to return only few Attribute fields of the feature instead of All the fields&amp;nbsp; as it makes the query slower. In Android SDk 10.xx there was a way to limit the outfields by&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Query 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;Query&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;
query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setOutFields&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;String&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="string token"&gt;"Filed1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Field2"&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="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 100.x the&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;QueryParameters &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;has no such method as setOutfields. how can I do this please !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:38:03 GMT</pubDate>
    <dc:creator>cadgism</dc:creator>
    <dc:date>2021-12-12T04:38:03Z</dc:date>
    <item>
      <title>Set Out Fields.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/set-out-fields/m-p/679647#M4726</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;I want to return only few Attribute fields of the feature instead of All the fields&amp;nbsp; as it makes the query slower. In Android SDk 10.xx there was a way to limit the outfields by&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Query 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;Query&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;
query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setOutFields&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;String&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="string token"&gt;"Filed1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Field2"&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="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 100.x the&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;QueryParameters &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;has no such method as setOutfields. how can I do this please !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/set-out-fields/m-p/679647#M4726</guid>
      <dc:creator>cadgism</dc:creator>
      <dc:date>2021-12-12T04:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Out Fields.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/set-out-fields/m-p/679648#M4727</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;When you call the queryFeaturesAsync method on ServiceFeatureTable, you can indicate which fields you want to be included in the&amp;nbsp;returned features:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;this&amp;nbsp;overload&amp;nbsp;of queryFeaturesAsync lets you indicate you want IDS_ONLY, MINIMUM (fields that are needed for things like rendering, labeling), or LOAD_ALL attributes - see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/ServiceFeatureTable.html#queryFeaturesAsync(com.esri.arcgisruntime.data.QueryParameters,%20com.esri.arcgisruntime.data.ServiceFeatureTable.QueryFeatureFields)" title="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/ServiceFeatureTable.html#queryFeaturesAsync(com.esri.arcgisruntime.data.QueryParameters,%20com.esri.arcgisruntime.data.ServiceFeatureTable.QueryFeatureFields)"&gt;queryFeaturesAsync (QueryParameters queryParameters, ServiceFeatureTable.QueryFeatureFields queryFields)&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;H4 class="" style="color: #222222; background-color: #e2e2e2; border: 0px; font-size: 1.1em; margin: 1.5em 0px 0.5em; padding: 3px 95px 3px 33px;"&gt;&lt;SPAN class="" style="font-weight: normal; font-size: 0.9em;"&gt;public&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/concurrent/ListenableFuture.html" style="color: #006699;"&gt;ListenableFuture&lt;/A&gt;&amp;lt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/FeatureQueryResult.html" style="color: #006699;"&gt;FeatureQueryResult&lt;/A&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="margin-right: 2px;"&gt;queryFeaturesAsync&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: normal; font-size: 0.9em;"&gt;(&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/QueryParameters.html" style="color: #006699;"&gt;QueryParameters&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;queryParameters,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/ServiceFeatureTable.QueryFeatureFields.html" style="color: #006699;"&gt;ServiceFeatureTable.QueryFeatureFields&lt;/A&gt;queryFields)&lt;/SPAN&gt;&lt;/H4&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;alternatively, if you are using MANUAL_CACHE mode for the ServiceFeatureTable, then the populateFromServiceAsync method allows you to control the specific fields&amp;nbsp;loaded for&amp;nbsp;all features present in the table&amp;nbsp;(as well as explicitly controlling which features get&amp;nbsp;requested from the service into the local in-memory table)&amp;nbsp;- see this sample &lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/service-feature-table-manualcache" title="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/service-feature-table-manualcache"&gt;arcgis-runtime-samples-android/java/service-feature-table-manualcache at master · Esri/arcgis-runtime-samples-android · …&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H4 class="" style="color: #222222; background-color: #e2e2e2; border: 0px; font-size: 1.1em; margin: 1.5em 0px 0.5em; padding: 3px 95px 3px 33px;"&gt;&lt;SPAN class="" style="font-weight: normal; font-size: 0.9em;"&gt;public&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/concurrent/ListenableFuture.html" style="color: #006699;"&gt;ListenableFuture&lt;/A&gt;&amp;lt;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/FeatureQueryResult.html" style="color: #006699;"&gt;FeatureQueryResult&lt;/A&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="margin-right: 2px;"&gt;populateFromServiceAsync&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: normal; font-size: 0.9em;"&gt;(&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/QueryParameters.html" style="color: #006699;"&gt;QueryParameters&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;query, boolean clearCache, Iterable&amp;lt;String&amp;gt; outFields)&lt;/SPAN&gt;&lt;/H4&gt;&lt;DIV class="" style="color: #999999; background-color: #ffffff; border: 0px; font-size: 0.8em; margin: -25px 0px 0px; padding: 0px 7px 0px 37px;"&gt;&lt;DIV style="border: 0px; padding-left: 30px;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #333333; background-color: #ffffff; border: 0px; font-size: 13px; margin: 0.5em 0.25em;"&gt;&lt;DIV class="" style="border: 0px; margin: 0.25em 0px 0.75em;"&gt;&lt;P style="border: 0px; margin: 0.5em 0px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;Hope this info helps. Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shelly&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:30:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/set-out-fields/m-p/679648#M4727</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2018-08-07T11:30:58Z</dc:date>
    </item>
  </channel>
</rss>

