AnsweredAssumed Answered

Return Descriptions for Fields with Domains (ArcGIS Server JSON)

Question asked by mkoneya on Jan 16, 2015

We are using the JavaScript API to build applications and have implemented our own custom forms to display attributes when a query is performed.    We are returning the attributes as JSON and then populating the custom grid to show the data.     The issue is that the JSON query returns the stored values we have in ArcSDE and not the descriptions for fields which have a domain associated with them.    I do not see any way to alter what is returned from the Query and it appears that we would have to query the layer information and loop through each field to determine if there is a domain associated with it and then change the value to the description.      Does anyone have any suggestions on how we can get the description to show up in the attributes and not the stored value?