<?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 AttributeInspector &amp;amp;quot;No features selected&amp;amp;quot; in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-amp-quot-no-features-selected/m-p/318922#M29391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to instantiate the AttributeInspector after making a selection via featureLayer.selectFeatures()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;featureLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,function(value)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sel = layer.getSelectedFeatures();// test - this is returning the correct feature

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var inspectorOptions = [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'featureLayer':featureLayer,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'isEditable': true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'showDeleteButton':false
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attInsp = new esri.dijit.AttributeInspector({layerInfos:inspectorOptions},'editingContent');
dojo.connect(attInsp,'onAttributeChange',self.recordAttributeModification);
});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any idea what I might be doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 14:33:06 GMT</pubDate>
    <dc:creator>ChrisRiver</dc:creator>
    <dc:date>2013-03-27T14:33:06Z</dc:date>
    <item>
      <title>AttributeInspector &amp;quot;No features selected&amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-amp-quot-no-features-selected/m-p/318922#M29391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to instantiate the AttributeInspector after making a selection via featureLayer.selectFeatures()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;featureLayer.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,function(value)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sel = layer.getSelectedFeatures();// test - this is returning the correct feature

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var inspectorOptions = [{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'featureLayer':featureLayer,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'isEditable': true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'showDeleteButton':false
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attInsp = new esri.dijit.AttributeInspector({layerInfos:inspectorOptions},'editingContent');
dojo.connect(attInsp,'onAttributeChange',self.recordAttributeModification);
});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any idea what I might be doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 14:33:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-amp-quot-no-features-selected/m-p/318922#M29391</guid>
      <dc:creator>ChrisRiver</dc:creator>
      <dc:date>2013-03-27T14:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector "No features selected"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-amp-quot-no-features-selected/m-p/318923#M29392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update (bump)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any ideas?&amp;nbsp; Right now I can only get the attribute editor to display reliably by using a pretty scary hack...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.attributeInspector._currentFeature = sel;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.attributeInspector.refresh();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.attributeInspector.domNode.children[0].innerHTML = layer.name;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.attributeInspector.domNode.children[1].setAttribute('style','display:block;');&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-amp-quot-no-features-selected/m-p/318923#M29392</guid>
      <dc:creator>ChrisRiver</dc:creator>
      <dc:date>2021-12-11T15:09:31Z</dc:date>
    </item>
  </channel>
</rss>

