I am using a esri-react package and when I tried to access layer field values from graphic.attributes objects, it shows only two fields in it. objectid and the display field. in 4.10 there was all attributes. how can I get all attributes loaded?
Solved! Go to Solution.
Reneesh,
Sounds like you have not set the layer outFields property in the constructor then.
Set this property to include the fields that will be used for client-side queries if the fields are not part of required fields used for rendering.
Reneesh,
Sounds like you have not set the layer outFields property in the constructor then.
Set this property to include the fields that will be used for client-side queries if the fields are not part of required fields used for rendering.
you are correct, when I added the outfields it worked.