<?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: Problem with Attribute Inspector in 3.1 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180617#M16748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. I'm afraid I cannot provide a test case, as it is a restricted site due to the data editing capabilities. Here are some screen shots that illustrate the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the Attribute Inspector loads correctly, it looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17763[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When it does not load on the first try, it looks likes this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17764[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the first error is thrown, all subsequent selections load just the first attribute field:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17765[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see in the Firebug console that the feature has been properly selected and the result returned.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2012 13:47:36 GMT</pubDate>
    <dc:creator>ReneeMaxwell</dc:creator>
    <dc:date>2012-09-18T13:47:36Z</dc:date>
    <item>
      <title>Problem with Attribute Inspector in 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180614#M16745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an editing application built on JSAPI version 3.1 and it includes a couple of Attribute Inspectors for 2 featureLayers in the app. One of them started giving me trouble when I select a record from a search result in a datagrid and I'm not sure why, but now the Attribute Inspector will not load at any time a feature from the associated layer is selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only error I receive is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"TypeError: _38a.toLowerCase is not a function" Editor-all.js (line 19)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have another Attribute Inspector which loads when a feature is selected from a different Feature Layer and that one works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see that the feature has been properly selected in the JSON response in Firebug. The query is working properly, but I am unable to view the attributes in the Attribute Inspector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a function which fires 'onSelectionComplete' for this layer to see if that would give me any clues. The function is triggered but the code does not run.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 13:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180614#M16745</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2012-09-17T13:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Attribute Inspector in 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180615#M16746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To make things more interesting, the Attribute Inspector works perfectly fine if the selection is fired by the the identify task, until the user tries to select a record from the datagrid which lists search results. Once a feature is selected from the datagrid the Attribute Inspector throws an error every time, regardless of how a feature is selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regardless of which function calls the feature selection, it is always fired via the featurelayer.selectFeatures(query) method. It is my understanding that the Attribute Inspector should be triggered any time a feature is selected in the associated layer. For some reason it only works part of the time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI, I did not encounter this problem in version 2.8.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 19:33:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180615#M16746</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2012-09-17T19:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Attribute Inspector in 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180616#M16747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide a test case that shows the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 20:13:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180616#M16747</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2012-09-17T20:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Attribute Inspector in 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180617#M16748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. I'm afraid I cannot provide a test case, as it is a restricted site due to the data editing capabilities. Here are some screen shots that illustrate the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the Attribute Inspector loads correctly, it looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17763[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When it does not load on the first try, it looks likes this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17764[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the first error is thrown, all subsequent selections load just the first attribute field:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]17765[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see in the Firebug console that the feature has been properly selected and the result returned.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 13:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180617#M16748</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2012-09-18T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Attribute Inspector in 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180618#M16749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry I haven't seen this issue before and without seeing the code (or a test case that repros) it is hard to know what is going on. Can you repro with any of the sample data?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 15:19:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180618#M16749</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2012-09-18T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Attribute Inspector in 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180619#M16750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I'll break down the relevant code. First a feature is selected on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var selquery = new esri.tasks.Query();
selquery.where = "OBJECTID = " + featID;
var geoLyr = map.getLayer(layerId);
geoLyr.selectFeatures(selquery);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the init() function, each feature layer is connected to an 'onSelectionComplete' function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(geoLyr, "onSelectionComplete", selectFeature);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once a feature has been selected, then we query a business table (also a feature layer loaded in the map) to select the associated record:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
function selectFeature(geoResults) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (geoResults.length === 1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var accNum = geoResults[0].attributes["ACCNUM"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var accTbl = map.getLayer("accTable"); // ACCESSIONS table feature layer

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var accQuery = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accQuery.returnGeometry = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accQuery.where = "ACCESSIONNUMBER = '" + accNum + "'";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; accTbl.selectFeatures(accQuery, esri.layers.FeatureLayer.SELECTION_NEW);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's really it. The selectFeature function fires every time any single feature is selected on the map. When the Identify task is used to select a feature, the Accessions table selection works as expected and the Attribute table loads correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When a feature is selected via the datagrid onRowClickHandler function, the same selectFeature function also fires, but you get the error as shown in the screenshots above &lt;/SPAN&gt;&lt;STRONG&gt;UNLESS&lt;/STRONG&gt;&lt;SPAN&gt; it has already been displayed by a previous Identify selection. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To clarify, if a user selects a feature first using the Identify task, the Attribute Inspector will load the selected feature from the Accessions table correctly, and it will continue to work correctly if the user selects a search result from the datagrid. However, if a user makes their first selection from the datagrid, the Attribute Inspector will fail to load the selected record on all subsequent selections, regardless of the method used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find it strange and baffling that the same 'onSelectionComplete' function, which returns the correct feature every time, only loads the Attribute Inspector some of the time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180619#M16750</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2021-12-11T09:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Attribute Inspector in 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180620#M16751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've tried this in 3.2 and I am encountering the same problem with the Attribute Inspector. It fails on most (but not all) feature selection operations, despite the fact that the correct features have been properly selected. The attribute inspector will not load. The same error occurs in all feature layers: "TypeError: _38a.toLowerCase is not a function" Editor-all.js (line 19)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd really love to know how to fix this. I'm updating an existing editing application and the ability to select features and edit attributes is critical.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 13:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180620#M16751</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2012-09-25T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Attribute Inspector in 3.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180621#M16752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried creating a test case with Esri sample data to see if you can repro the issue? Having a test case we can use from troubleshooting would help to identify the issue with your app.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 14:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-attribute-inspector-in-3-1/m-p/180621#M16752</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2012-09-25T14:37:01Z</dc:date>
    </item>
  </channel>
</rss>

