<?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: When to query AGSGDBFeatureServiceTable? in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/when-to-query-agsgdbfeatureservicetable/m-p/637923#M5669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Query should be executed after layer is loaded. That is to say, LayerDidLoad is the method you are looking for: &lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/QueryTaskSample/swift/QueryTask/Controllers/RootViewController.swift" title="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/QueryTaskSample/swift/QueryTask/Controllers/RootViewController.swift"&gt;arcgis-runtime-samples-ios/RootViewController.swift at master · Esri/arcgis-runtime-samples-ios · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before that, you want to make sure that you have your layer created with your AGSGDBFeatureServiceTable and added to the map, just like this:&lt;/P&gt;&lt;P&gt; let featureServiceTable = AGSGDBFeatureServiceTable(serviceURL: url, credential: weakSelf.gdbTask.credential, spatialReference: weakSelf.mapView.spatialReference)&lt;/P&gt;&lt;P&gt; let featureTableLayer = AGSFeatureTableLayer(featureTable: featureServiceTable)&lt;/P&gt;&lt;P&gt; featureTableLayer.delegate = weakSelf&lt;/P&gt;&lt;P&gt; weakSelf.mapView.addMapLayer(featureTableLayer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work for you, would you like to provide your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 23:35:20 GMT</pubDate>
    <dc:creator>MengyiGuo</dc:creator>
    <dc:date>2015-12-16T23:35:20Z</dc:date>
    <item>
      <title>When to query AGSGDBFeatureServiceTable?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/when-to-query-agsgdbfeatureservicetable/m-p/637922#M5668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After I have set an AGSGDBFeatureServiceTable, and invoked the loadCompletion block, I set the delegate and add the layer to my mapView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the delegate layerDidLoad method, I receive confirmation the layer did load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I query the AGSGDBFeatureServiceTable for features, and get mixed results.&amp;nbsp; Sometimes I get all the features, 5 total, and other times I get 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation led me to believe that layerDidLoad is what I should be waiting for but it looks like that isn't it.&amp;nbsp; I can't seem to find what exactly I should be waiting for to query the service. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/when-to-query-agsgdbfeatureservicetable/m-p/637922#M5668</guid>
      <dc:creator>KyleDunaway</dc:creator>
      <dc:date>2015-10-28T19:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: When to query AGSGDBFeatureServiceTable?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/when-to-query-agsgdbfeatureservicetable/m-p/637923#M5669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Query should be executed after layer is loaded. That is to say, LayerDidLoad is the method you are looking for: &lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/QueryTaskSample/swift/QueryTask/Controllers/RootViewController.swift" title="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/QueryTaskSample/swift/QueryTask/Controllers/RootViewController.swift"&gt;arcgis-runtime-samples-ios/RootViewController.swift at master · Esri/arcgis-runtime-samples-ios · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before that, you want to make sure that you have your layer created with your AGSGDBFeatureServiceTable and added to the map, just like this:&lt;/P&gt;&lt;P&gt; let featureServiceTable = AGSGDBFeatureServiceTable(serviceURL: url, credential: weakSelf.gdbTask.credential, spatialReference: weakSelf.mapView.spatialReference)&lt;/P&gt;&lt;P&gt; let featureTableLayer = AGSFeatureTableLayer(featureTable: featureServiceTable)&lt;/P&gt;&lt;P&gt; featureTableLayer.delegate = weakSelf&lt;/P&gt;&lt;P&gt; weakSelf.mapView.addMapLayer(featureTableLayer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work for you, would you like to provide your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 23:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/when-to-query-agsgdbfeatureservicetable/m-p/637923#M5669</guid>
      <dc:creator>MengyiGuo</dc:creator>
      <dc:date>2015-12-16T23:35:20Z</dc:date>
    </item>
  </channel>
</rss>

