Hi Nimesh
Spatial Feature of the FService is : 2249
The spatial ref of my mapview is the same (2249).
The process runs, no errors are thrown. However, the feature with its symbology don't show in my map as it does in the example and when I open the Feature Class in SDE and I see the attributes, but there is no geometry.
I've attached the editresults during debug.
Also, I'm using my own map service not webmap.
AGSMapServiceInfo *bms = [[[AGSMapServiceInfo alloc] initWithURL:[NSURL URLWithString:baseLayerURL] error:&error] autorelease];
AGSDynamicMapServiceLayer *baseLayer = [[AGSDynamicMapServiceLayer alloc] initWithMapServiceInfo:bms];
also at didSelectFeatureTemplate
//set the active feature layer to the one we are going to edit
self.activeFeatureLayer = featureLayer;
//create a new feature based on the template
_newFeature = [self.activeFeatureLayer createFeatureWithTemplate:template];
[self.activeFeatureLayer addGraphic:_newFeature];
AGSGraphic *gr = _newFeature;
self.popupInfo = [AGSPopupInfo popupInfoForGraphic: gr];
self.popupInfo.allowEditGeometry = YES;
self.popupInfo.showAttachments = YES;
//Filter the fields we want to display to the user
NSMutableArray* fieldInfos = [self.popupInfo.fieldInfos mutableCopy];
NSMutableArray* displayFields = [[[NSMutableArray alloc] init] autorelease];
NSArray* inspectiondisplayeditfields = [[[NSArray alloc] init] autorelease];
inspectiondisplayeditfields = self.fieldsForEditing;
for (AGSPopupFieldInfo* fieldInfo in fieldInfos) {
for (int i = 0 ; i < [inspectiondisplayeditfields count] ; i++) {
if ([fieldInfo.fieldName isEqualToString:[inspectiondisplayeditfields objectAtIndex:i]])
{
[displayFields addObject:fieldInfo];
}
}
}
self.popupInfo.fieldInfos = displayFields;
//Show popup for the graphic because the user tapped on the callout accessory button
self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithPopupInfo:_popupInfo graphic:gr usingNavigationControllerStack:NO] autorelease];
self.popupVC.delegate = self;
self.popupVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
//If iPad, use a modal presentation style
if([[UIDevice currentDevice] isIPad])
self.popupVC.modalPresentationStyle = UIModalPresentationFormSheet;
// //First, dismiss the Feature Template Picker
[self dismissModalViewControllerAnimated:NO];
[self presentModalViewController:self.popupVC animated:YES];
[self.popupVC startEditingCurrentPopup];
[fieldInfos release];