<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Attribute Inspector doesn't open when editing in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-inspector-doesn-t-open-when-editing/m-p/723246#M67161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton Ken!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Sep 2017 15:51:04 GMT</pubDate>
    <dc:creator>LindaDunklee</dc:creator>
    <dc:date>2017-09-17T15:51:04Z</dc:date>
    <item>
      <title>Attribute Inspector doesn't open when editing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-inspector-doesn-t-open-when-editing/m-p/723244#M67159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;I am attempting to use the Editor widget from the JS API - my editor initializes and I can see all of the layers/symbols available that I want to be able to edit. &amp;nbsp;Clicking on one and drawing on the map creates a feature, but the attribute inspector never opens. &amp;nbsp;Clicking on an already created feature also does not open the attribute inspector. &amp;nbsp;Code is below. &amp;nbsp;Not all layers in my application should be editable, so I am looping through a list to add them to the editor widget. &amp;nbsp;This works fine. &amp;nbsp;The init edit function is fired when a button is clicked, which opens a panel containing the edit Div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var editor;&lt;BR /&gt;var templatePicker;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/tasks/GeometryService",&lt;BR /&gt; "esri/layers/FeatureLayer",&lt;BR /&gt; "esri/Color",&lt;BR /&gt; "esri/symbols/SimpleMarkerSymbol",&lt;BR /&gt; "esri/symbols/SimpleLineSymbol",&lt;BR /&gt; "esri/dijit/editing/Editor",&lt;BR /&gt; "esri/dijit/editing/TemplatePicker",&lt;BR /&gt; "esri/config",&lt;BR /&gt; "dojo/i18n!esri/nls/jsapi",&lt;BR /&gt; "dojo/_base/array", &lt;BR /&gt; "dojo/parser",&lt;BR /&gt; "dojo/keys",&lt;BR /&gt; "dijit/layout/BorderContainer",&lt;BR /&gt; "dijit/layout/ContentPane",&lt;BR /&gt; "dojo/domReady!"&lt;BR /&gt; ], function(&lt;BR /&gt; Map, &lt;BR /&gt; GeometryService,&lt;BR /&gt; FeatureLayer,&lt;BR /&gt; Color,&lt;BR /&gt; SimpleMarkerSymbol, &lt;BR /&gt; SimpleLineSymbol,&lt;BR /&gt; Editor, &lt;BR /&gt; TemplatePicker,&lt;BR /&gt; esriConfig, &lt;BR /&gt; jsapiBundle,&lt;BR /&gt; arrayUtils, &lt;BR /&gt; parser, &lt;BR /&gt; keys&lt;BR /&gt; ) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // snapping is enabled for this sample - change the tooltip to reflect this&lt;BR /&gt; jsapiBundle.toolbars.draw.start = jsapiBundle.toolbars.draw.start + "&amp;lt;br&amp;gt;Press &amp;lt;b&amp;gt;ALT&amp;lt;/b&amp;gt; to enable snapping";&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// refer to "Using the Proxy Page" for more information: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjshelp%2Fags_proxy.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html&lt;/A&gt;&lt;BR /&gt; //esriConfig.defaults.io.proxyUrl = "/proxy/";&lt;/P&gt;&lt;P&gt;//This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications.&lt;BR /&gt; esriConfig.defaults.geometryService = new GeometryService(geometryService);&lt;/P&gt;&lt;P&gt;initEditor = function(evt) {&lt;BR /&gt; document.getElementById("pnlEdit").style.height = spatialEditSize;&lt;BR /&gt; var templateLayers = [];&lt;BR /&gt; var lay = [];&lt;BR /&gt; for (i=0;i&amp;lt;layers.length;i++){&lt;BR /&gt; if (layers&lt;I&gt;.spatialEdit == true){&lt;BR /&gt; templateLayers.push(layerList&lt;I&gt;);&lt;BR /&gt; lay.push({featureLayer: layerList&lt;I&gt;})&lt;BR /&gt; }&lt;BR /&gt; }&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;templatePicker = new TemplatePicker({&lt;BR /&gt; featureLayers: templateLayers,&lt;BR /&gt; grouping: true,&lt;BR /&gt; rows: "auto",&lt;BR /&gt; columns: 3,&lt;BR /&gt; }, "templateDiv");&lt;BR /&gt; templatePicker.startup(); &lt;BR /&gt; &lt;BR /&gt; var settings = {&lt;BR /&gt; map: map,&lt;BR /&gt; templatePicker: templatePicker,&lt;BR /&gt; layerInfos: lay,&lt;BR /&gt; toolbarVisible: true,&lt;BR /&gt; createOptions: {&lt;BR /&gt; polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ],&lt;BR /&gt; polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON,&lt;BR /&gt; Editor.CREATE_TOOL_CIRCLE,&lt;BR /&gt; Editor.CREATE_TOOL_TRIANGLE,&lt;BR /&gt; Editor.CREATE_TOOL_RECTANGLE&lt;BR /&gt; ]&lt;BR /&gt; },&lt;BR /&gt; toolbarOptions: {&lt;BR /&gt; reshapeVisible: true&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;var parameters = { settings: settings};&lt;BR /&gt; console.log(parameters);&lt;BR /&gt; editor = new Editor(parameters, 'editorDiv');&lt;BR /&gt; //define snapping options&lt;BR /&gt; var symbol = new SimpleMarkerSymbol(&lt;BR /&gt; SimpleMarkerSymbol.STYLE_CROSS,&lt;BR /&gt; 15,&lt;BR /&gt; new SimpleLineSymbol(&lt;BR /&gt; SimpleLineSymbol.STYLE_SOLID,&lt;BR /&gt; new Color([255, 0, 0, 0.5]),&lt;BR /&gt; 5&lt;BR /&gt; ),&lt;BR /&gt; null&lt;BR /&gt; );&lt;BR /&gt; map.enableSnapping({&lt;BR /&gt; snapPointSymbol: symbol,&lt;BR /&gt; tolerance: 20,&lt;BR /&gt; snapKey: keys.ALT&lt;BR /&gt; });&lt;BR /&gt; editor.startup();&lt;BR /&gt; console.log(settings);&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 14:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-inspector-doesn-t-open-when-editing/m-p/723244#M67159</guid>
      <dc:creator>LindaDunklee</dc:creator>
      <dc:date>2017-09-13T14:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Inspector doesn't open when editing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-inspector-doesn-t-open-when-editing/m-p/723245#M67160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a note in the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/templatepicker-amd.html#templatepicker1"&gt;constructor section&lt;/A&gt; of the TemplatePicker help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The TemplatePicker must be created and &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/templatepicker-amd.html#startup"&gt;started&lt;/A&gt; inside the &lt;STRONG&gt;onLoad&lt;/STRONG&gt; event of the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#event-load"&gt;map&lt;/A&gt; or the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#event-load"&gt;layer&lt;/A&gt; for which it is associated.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You aren't doing that in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-inspector-doesn-t-open-when-editing/m-p/723245#M67160</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2017-09-14T13:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Inspector doesn't open when editing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-inspector-doesn-t-open-when-editing/m-p/723246#M67161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton Ken!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Sep 2017 15:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-inspector-doesn-t-open-when-editing/m-p/723246#M67161</guid>
      <dc:creator>LindaDunklee</dc:creator>
      <dc:date>2017-09-17T15:51:04Z</dc:date>
    </item>
  </channel>
</rss>

