Select to view content in your preferred language

Attribute Inspector not showing Data

1012
2
Jump to solution
11-05-2013 10:45 AM
NumaGremling
Deactivated User
Hi everyone,

I am trying to use a sample and make it work with my data, but it seems that it will not fully recognize my layer.

Here is the sample I am using, and I have attached my code. I would assume that all I would have to do is change the feature layer and the outfields as well as the fields in the attribute inspector. Nothing shows up, however. When I click on my parcel the ???Click a geology outcrop to view details.??? will vanish, but the attribute inspector will not show up instead.

Any suggestions?
0 Kudos
1 Solution

Accepted Solutions
JasonZou
Frequent Contributor
Javascript is case-sensitive. Based on the layer info, the objectid field should be OBJECTID.

Change:
selectQuery.objectIds = [e.graphic.attributes.objectid];


To:
selectQuery.objectIds = [e.graphic.attributes.OBJECTID];

View solution in original post

0 Kudos
2 Replies
JasonZou
Frequent Contributor
Javascript is case-sensitive. Based on the layer info, the objectid field should be OBJECTID.

Change:
selectQuery.objectIds = [e.graphic.attributes.objectid];


To:
selectQuery.objectIds = [e.graphic.attributes.OBJECTID];
0 Kudos
NumaGremling
Deactivated User
Problem solved! Thank you so much!
0 Kudos