I am trying to instantiate the AttributeInspector after making a selection via featureLayer.selectFeatures()featureLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,function(value)
{
var sel = layer.getSelectedFeatures();// test - this is returning the correct feature
var inspectorOptions = [{
'featureLayer':featureLayer,
'isEditable': true,
'showDeleteButton':false
}];
var attInsp = new esri.dijit.AttributeInspector({layerInfos:inspectorOptions},'editingContent');
dojo.connect(attInsp,'onAttributeChange',self.recordAttributeModification);
});
What I get is the attribute inspector with the "No features selected" text in it the first time I try to instantiate it. If I hit the edit button again (to trigger the preceding code block) the attribute inspector is populated with the expected form elements.Anyone have any idea what I might be doing wrong?