Hi,
I've created feature layer from featureservice. I've almost 73 predefined edit templates and want to add couple of attributes to each template after layer is getting added on map.
I got all templates using below code but not sure how to get predefined attributes and set values.
IEnumerable<FeatureLayer> featLayers = theMap.GetLayersAsFlattenedList().OfType<FeatureLayer>();
foreach (FeatureLayer item in featLayers)
{
foreach (var template in MappingExtensions.GetTemplates(item))
{
//Define attribute for each template.
}
}Any help would be appreciated.
-Prashant