Thought I would tack on a question to this thread. I have popup.xml configured to show a variety of fields from a layer in FlexViewer 2.3. Some of these fields are coded domains. On all the fields but one this works just great. However on one field for some reason the popup gives the code value (e.g. "1") instead of the description of the domain.
I've reviewed the information in the mxd that is being published and the text value comes up when I do an identify in ArcMap, so it looks right there.
I've then reviewed the rest end point and it list the coded domain and the text values, just like the other coded domains in the dataset that work well with the popup.xml. So there seems to be no difference there.
I have also added the feature layer to ArcGIS.com map and the domain all appear correctly there. So that leads me to believe the the service is rendering the information correctly.
To add a twist to this, it appears that at some locations the value appears correctly in the popup in the Flexviewer and at others it displays the code.
I have provided examples below, if this isn't very clear.
Any idears?