<?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: Access Fields Name for particular Layer with LayerID in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515725#M4423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The fields in AGSFeatureSet is available only if the ArcGIS Server service is version 10.1 and above. Please refer help &lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://developers.arcgis.com/ios/api-reference/interface_a_g_s_feature_set.html#a00dcffd834eb8ecd69680de535ec9ff8" rel="nofollow" style="font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;here&lt;/A&gt;. Are you using sample server service or your own service? If your own service then run query on the browser and make sure it returns `fields`. Please let me know so I can help you further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Nimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 19:36:33 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2015-08-14T19:36:33Z</dc:date>
    <item>
      <title>Access Fields Name for particular Layer with LayerID</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515724#M4422</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;its urgent ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;i actually tried ways , even checked ESRI sample code QueryTaskExample.&amp;nbsp; i need simply to get Fields Names or Attributes of any Layer .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;i used following method...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.queryTask = [AGSQueryTask queryTaskWithURL:[NSURLURLWithString:strMAPURL]]; // here i send like @"&lt;A href="https://community.esri.com/external-link.jspa?url=http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.queryTask.delegate = self;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&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 style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //return all fields in query&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.query = [AGSQuery query];&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.query.outFields = [NSArray arrayWithObjects:@"*", nil];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.query.text = @"Fields"; // with out this line or without empty query it gives error&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.queryTask executeWithQuery:self.query];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;i access below delegates :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;//results are returned&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;- (void)queryTask:(AGSQueryTask *)queryTask operation:(NSOperation *)op didExecuteWithFeatureSetResult:(AGSFeatureSet *)featureSet {&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp; //get feature, and load in to table&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp; self.featureSet = featureSet; &lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;&amp;nbsp; [super.tableView reloadData];&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;featureSet.fields&amp;nbsp; // this should be giving me Name of Fields for Layer 3....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: -apple-system-font; font-size: 12px;"&gt;but i am getting Array as 0 elements......&amp;nbsp; i need to get Fields name in same order as there in Server Layer....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515724#M4422</guid>
      <dc:creator>GajaNaik</dc:creator>
      <dc:date>2015-08-14T18:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access Fields Name for particular Layer with LayerID</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515725#M4423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The fields in AGSFeatureSet is available only if the ArcGIS Server service is version 10.1 and above. Please refer help &lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://developers.arcgis.com/ios/api-reference/interface_a_g_s_feature_set.html#a00dcffd834eb8ecd69680de535ec9ff8" rel="nofollow" style="font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;here&lt;/A&gt;. Are you using sample server service or your own service? If your own service then run query on the browser and make sure it returns `fields`. Please let me know so I can help you further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Nimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 19:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515725#M4423</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2015-08-14T19:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Access Fields Name for particular Layer with LayerID</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515726#M4424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;i tried with Server 10.3 , &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but Fields only show 53 objects but each object shows 0 Key/value pair &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 20:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515726#M4424</guid>
      <dc:creator>GajaNaik</dc:creator>
      <dc:date>2015-08-14T20:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Access Fields Name for particular Layer with LayerID</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515727#M4425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fields is an array of &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_field.html"&gt;AGSField&lt;/A&gt; objects. You will get name of the field from property. Actual, values are in the AGSGraphic's attributes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 20:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/access-fields-name-for-particular-layer-with/m-p/515727#M4425</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2015-08-14T20:50:24Z</dc:date>
    </item>
  </channel>
</rss>

