AttributeInspector "No features selected"

Discussion created by criver on Mar 27, 2013
Latest reply on Mar 27, 2013 by criver
I am trying to instantiate the AttributeInspector after making a selection via featureLayer.selectFeatures()

      var sel = layer.getSelectedFeatures();// test - this is returning the correct feature

      var inspectorOptions = [{
        'isEditable': true,
      var attInsp = new esri.dijit.AttributeInspector({layerInfos:inspectorOptions},'editingContent');

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?