<?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 Specifying Outfields on a ServiceFeatureTable in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111596#M1264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;In the previous control version (10.2.7) we could use outfields to restrict the data returned for a feature layer e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;FeatureServiceTable = Await Esri.ArcGISRuntime.Data.ServiceFeatureTable.OpenAsync ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;FeatureServiceTable.OutFields = New OutFields(...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;In the current control version (100.2) it appears only the ManualCache feature request mode allows specification of outfields and this can no longer be set on the table itself. We are experiencing frequent crashes using the control and believe it may be memory related hence the desire to limit the outfields (to just the ObjectID). Is there any way to achieve this in the current control? Might this be added back in the next release version?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2018 12:04:19 GMT</pubDate>
    <dc:creator>RobertHaines</dc:creator>
    <dc:date>2018-07-02T12:04:19Z</dc:date>
    <item>
      <title>Specifying Outfields on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111596#M1264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;In the previous control version (10.2.7) we could use outfields to restrict the data returned for a feature layer e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;FeatureServiceTable = Await Esri.ArcGISRuntime.Data.ServiceFeatureTable.OpenAsync ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;FeatureServiceTable.OutFields = New OutFields(...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;In the current control version (100.2) it appears only the ManualCache feature request mode allows specification of outfields and this can no longer be set on the table itself. We are experiencing frequent crashes using the control and believe it may be memory related hence the desire to limit the outfields (to just the ObjectID). Is there any way to achieve this in the current control? Might this be added back in the next release version?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 12:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111596#M1264</guid>
      <dc:creator>RobertHaines</dc:creator>
      <dc:date>2018-07-02T12:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Outfields on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111597#M1265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;Have you checked that you are calling `LoadAsync` on the features before accessing the attributes?.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111597#M1265</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2018-07-02T14:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Outfields on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111598#M1266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes in the initial setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Me.FeatureServiceTable = ..&lt;BR /&gt;Me.FeatureServiceTable.FeatureRequestMode =&amp;nbsp;..&lt;/P&gt;&lt;P&gt;Await Me.FeatureServiceTable.LoadAsync()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111598#M1266</guid>
      <dc:creator>RobertHaines</dc:creator>
      <dc:date>2018-07-02T14:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Outfields on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111599#M1267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are accessing attributes after a query you can use&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Data_ServiceFeatureTable_QueryRelatedFeaturesAsync.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Data_ServiceFeatureTable_QueryRelatedFeaturesAsync.htm"&gt;ServiceFeatureTable.QueryRelatedFeaturesAsync Method (ArcGISFeature, RelatedQueryParameters, QueryFeatureFields)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but make sure that you load the Feature as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie. &lt;BR /&gt;await mySelectedFeature.LoadAsync();&lt;/P&gt;&lt;P&gt;var myValue = int(mySelectedFeature.Attributes["myKey"].Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111599#M1267</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2018-07-02T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Outfields on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111600#M1268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are looking to restrict what we get back for better performance and to limit memory usage which we think is causing a number of unhandled exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The old version supported outfields on the table but this appears not to be&amp;nbsp;present on the current version? This means the full attribution is pulled back as we navigate across the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111600#M1268</guid>
      <dc:creator>RobertHaines</dc:creator>
      <dc:date>2018-07-02T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Outfields on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111601#M1269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. As you have seen, at the moment there isn't a way to do that in the API directly. Option on specifying OutFields has been coming up a&amp;nbsp;couple of times lately, I have mentioned this chain in our internal issue that covers this. Currenlty&amp;nbsp;the best way to work around this is actually using&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/hosted-web-layers.htm"&gt;Views &lt;/A&gt;or content optimized Feature services if you are using server. It might not be a solution on every use case but overall restricting&amp;nbsp;visible fields/attributes for specialized applications is a good way to organize your content. Especially if there are security concerns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm curious on your use case and service setup if you are hitting memory issues with this. How many attributes you have in your features? How many features are you using at the same time?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111601#M1269</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2018-07-02T15:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Outfields on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111602#M1270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For ServiceFeatureTable, you can use ManualCache mode to specify the OutFields. If renderer used by service requires for a specific field name and you did not request for it. For example in this case, 'symbolid' then nothing will render.&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; table &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;ServiceFeatureTable&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;Uri&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWildfire%2FFeatureServer%2F2" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&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="punctuation token"&gt;{&lt;/SPAN&gt; FeatureRequestMode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureRequestMode&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ManualCache &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; table&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;PopulateFromServiceAsync&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;QueryParameters&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; WhereClause &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1=1"&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;true&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;"objectid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"symbolid"&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;
MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OperationalLayers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Add&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;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;table&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:41:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111602#M1270</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T06:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Outfields on a ServiceFeatureTable</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111603#M1271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As requested some background information.&lt;/P&gt;&lt;P&gt;Our desktop application hosts the WPF control within a&amp;nbsp; Visual Basic Project and this may be deployed as a Citrix install or locally on end-users machines. Therefore these machines may not be high-end or have large amounts of memory. Our test environment has 8 GB of memory.&lt;/P&gt;&lt;P&gt;Our desktop application currently uses version 10.2.5 of the control and this connects to MPK files that our clients generate. With the move to 100.2 we will support both MPK and connection to an ArcGIS Server.&lt;/P&gt;&lt;P&gt;In our test dataset we have in the region of 35 layers covering a large geographic area holding information related to Water Mains, Valves, Boosters, Hydrants, Bursts etc. The attribution across these features varies from 2 to 20 fields at most. An end-user could select all these layers for display which covers millions of features depending on the map scale.&lt;/P&gt;&lt;P&gt;On end-user selection of an item we query the feature table to get back the full attribution for display in an information panel. Hence why we don't need the full attribution being retrieved when an end-user just navigates across the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 13:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/specifying-outfields-on-a-servicefeaturetable/m-p/111603#M1271</guid>
      <dc:creator>RobertHaines</dc:creator>
      <dc:date>2018-07-06T13:54:28Z</dc:date>
    </item>
  </channel>
</rss>

