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.
Hi All,
From below method I'm able to get result but not able to access the object its crashing as it throwing uncaught exception. Please check below code.
[self.structureFeatureTable queryResultCursorWithParameters:query completion:^(AGSGDBQueryResultCursor *cursor, NSError *error) {
NSLog(@"%@",error);
NSLog(@"%@",cursor);
NSLog(@"%@",cursor.currentFeature);
}];
While accessing cursor.currenttFeature getting below exception.
libc++abi.dylib: terminating with uncaught exception of type Esri_runtimecore::Geodatabase::geodatabase_error: std::exception
Can someone help me with this issue.
Thanks and regards,
Hrishikesh Pol.