attInspector = new esri.dijit.AttributeInspector({ layerInfos: layerInfos }, "attributesDiv");
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="title:'Enter/Edit Room'"> <div id="attributesDiv"></div> </div>
Hello,I adapted the following sample to put the attribute inspector in the right pane of the page:http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/widget_attributeinspectorpane(When I watched users try to use the attribute inspector in the info window, I noticed they had to pan the map and make adjustments in order to see all of the fields they needed to edit.)Anyway, I'm working with floor plans so before I can enable editing, the user queries a building and the first floor is loaded. The selected floor is used in a definition expression on the feature layer used for editing. The layerInfos and attribute inspector are set up in the initSelectToolbar function.attInspector = new esri.dijit.AttributeInspector({ layerInfos: layerInfos }, "attributesDiv"); <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="title:'Enter/Edit Room'"> <div id="attributesDiv"></div> </div> I get this error in firebug "Tried to register widget with id==attributesDiv but that id is already registered".I've tried using different variations from to put the attribute inspector in a new div inside attributesDiv but they haven't worked. I'm thinking I may not have have the right require statement.Any help would be greatly appreciated.Take care,Kelly
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.