Select to view content in your preferred language

Edit Widget not recognizing coded domains?

917
2
07-26-2011 07:31 AM
by Anonymous User
Not applicable
Original User: froberts

I recently changed one of our layers in SDE from a text coded domain to an integer coded domain with text descriptions (see attached images).  The edit widget displayed correctly the domains when they were text (e.g. when editing a feature I would receive a drop down list of the potential values, and I could change those values).  However, now that I have changed to integer I receive a list of my text descriptions, but when I pick a text description the widget saves the results and then the value for the field goes blank.  I can then click on a different feature and my pull down values contain the last coded integer value and the other text values (e.g. �??1�?�,�?�Residentail Use�?�, �?�Commercial Use�?�,�?�. or whatever I changed it too).  If I go back and click on the feature I changed I see integer value for the item I changed (e.g. �??1�?�).


In addition, when I use the standard PopUp xml to do a simple identify (when not in edit mode), I receive the integer value for the fields that are represented by the domains that use the new integer coded domains.  So I see �??1�?� instead of �??Residential Use�?� like I expect for the value.

I have tested the same things in ArcMap, and the values in the pulldown and saving seem to work as expected.

Is this a limitation of the FlexViewer edit widget?

Thanks for any assistance,
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: froberts

1/2 Better but not good enough..

Ok, so I went in and deleted the GlobalID, since I had imported the layer from another one in the same SDE database and I thought that maybe that was evil in someway???  I then recreated the GlobalID using ArcCatalog on the feature dataset that the layer is found.

I refreshed my mxd and did some test editing in ArcMap just to make sure everything was good.  Then refreshed the AGS service.

Now this is what I experience.  If I select any of the polygons while the edit widget is not running I still see just a int value (e.g. "1") from the popup.xml for the value of these particular items.  If I go in and use the edit widget I can change the values, at first click it shows just the int value as the other popup.xlm shows. The value now does change and the save occurs and it looks as it should, after the save it has the text value for the coded domain.  So the old GlobalID must have been messing up the save. Now however if I close the edit widget and click on the polygon the value is empty for the one I just changed.  So the popup.xml is returning me nothing for that item in the record.  I also get the same result if I click on that same polygon in ArcMap, so the value has been set to blank in the database.  Other values unchanged by the edit widget, still show up with a int value.  If I go back and open up the edit widget and select the modified polygon, it too shows no value for that polygon for that coded domain.

Let me know if you all have some idears..
Thanks
0 Kudos
FrankRoberts
Frequent Contributor
Well if I wanted to save face I would completely delete this post, but because some other poor sap might do the same thing I will leave it up.

The last step to resolve this issue was to remember to clear the rest cache on the server, (i.e. fire up the "ArcGIS Rest API Admin" web site and "clear cache now".... I'm normally completely anal about that but since someone else made the initial changes I forgot.  My fault, lesson learned the hard way.....

Hope this helps someone!
0 Kudos