AnsweredAssumed Answered

How to query AGSGDBFeatureTable for get particular record from table

Question asked by HrishiPol on Aug 18, 2015
Latest reply on Aug 18, 2015 by HrishiPol

Hi All,

 

I'm trying to find a particular record from AGSGDBFeatureTable. Below is my code.

 

        AGSQuery* query = [AGSQuery query];

        query.whereClause = [NSString stringWithFormat:@"STR_ID = '%@'",self.currentStructure.strID];

 

        [self.structureFeatureTable queryResultsWithParameters:query completion:^(NSArray *results, NSError *error) {

           NSLog(@"%@",results);

        }];

 

From code, I'm able to fetch properties of table. and query is also having right object.

It giving me always empty array in result with error nil. Is something missing from my end. Please help me with this.

Outcomes