Hello, I want to be able to get attribute info from graphics. But I found that the only attribute available for graphics is the OBJECTID (please see the first screen shot) even though I specified the outFields to include the field i want (please see the codes). Did I do anything wrong? Is there a way to get attributes other than OBJECTID from graphics?
Solved! Go to Solution.
Alex,
Are you 100% sure on the field name? CaSe is important. Do you get it if you do:
outFields: ['*']
Alex,
Are you 100% sure on the field name? CaSe is important. Do you get it if you do:
outFields: ['*']
Thanks Robert. You got me again. I used incorrect layer for the featureLayer. after i used the correct layer with the "PropertyID" field, i was able to get the ProeprtyID listed in the graphic.attributes property. Thanks again.