Domain Not Editable

Steve Shaffer's Avatar

Steve Shaffer

29 May, 2012 11:40 PM

I'm unable to edit the Domain lists in my tables. I was able to edit them in the past, but now I'm getting a black-boxed or sometimes grayed-out "Coded Value" under the "Domain" field in the Fields editing window. If I click around too much, I'll get a .NET error with the attached bug info.

Is there a quick fix / is there another way to edit the domains?

  1. Support Staff 2 Posted by bFlood on 30 May, 2012 01:07 PM

    bFlood's Avatar

    I'll take a look and get back to you

    cheers
    brian

  2. 3 Posted by mslaten on 06 Jul, 2012 05:27 PM

    mslaten's Avatar

    Brian,

    Any idea when this issue will be fixed? Being able to edit an existing domain is pretty critical for my applications.

    Mark

  3. 4 Posted by Steve Shaffer on 06 Jul, 2012 06:24 PM

    Steve Shaffer's Avatar

    Ditto.

    I've been able to work around it for now, but this is a pretty critical bug for a lot of workflows.

  4. 5 Posted by mslaten on 06 Jul, 2012 06:27 PM

    mslaten's Avatar

    I am on the Dahl fire (Roundup, MT) starting June 27.

  5. Support Staff 6 Posted by bFlood on 09 Jul, 2012 04:57 PM

    bFlood's Avatar

    hi guys

    this has been fixed in the latest Dev build but it's unlikely you will be able to download and use it until we push that out as the beta. We've added a lot of new features and this next release will require the installer to be run again

    I'm hoping to get this next build out by mid next week, hopefully.

    in the mean time, if you're feeling adventurous, you can manually update the table's local config file and change the domain values to what you want. If you restart Sync and then re-save the table, you should see those values applied online. I can't be sure this will work on the previous builds you are using but it may be worth a shot.

    to make the change:
    1) Find the A2E AppData folder on your computer, it will be in different locations depending on your Windows version. On XP, its located here:
    C:\Documents and Settings\YourUserName\Local Settings\Application Data\Arc2Earth\Sync\LayerMetadata

    2) Find the table in the list of files and make a backup copy.
    3) Open the table config in a text editor. To make it easy, I would copy all the text and then goto a site like jsonlint.com and paste the values there. It will nicely format the json so you can actually see whats going on.
    4) Locate the "fields" array towards the bottom and then find the field name where you want to change the domain values.
    5) Here's an example field with a CodeValue domain, edit your domain as needed:
    `
    {

         "alias": "", 
         "defaultValue": null, 
         "displayName": "TEMPERATUR", 
         "domain": {
            "domainType": "CodedValue", 
            "name": "Temp", 
            "ranges": [], 
            "values": [
               "Red", 
               "Blue", 
               "Green", 
               "Orange"
            ]
         }, 
         "fieldType": "String", 
         "isEditable": true, 
         "isNullable": true, 
         "isVisible": true, 
         "length": 255, 
         "name": "TEMPERATUR"
      }
    

    `

    6) Be very careful when editing this file. also, not all values from this file are applied to table when Sync starts so you can't use this technique to fix all issues, Domains just happens to be one where it works

    cheers
    brian

  6. 7 Posted by mslaten on 17 Jul, 2012 07:56 PM

    mslaten's Avatar

    This method worked like a charm. Thanks so much for the "work-around".

    PS. I tested Sync on a massive wildfire in Montana over the past few weeks with 10 iPad users with great results. Keep up the good work.

    Mark Slaten

  7. Support Staff 8 Posted by bFlood on 19 Jul, 2012 12:51 PM

    bFlood's Avatar

    yea, sorry the workaround is so many steps, amazing what a single button in the UI does right?

    iPad- awesome, that's great to hear. We're seeing thousands of edits per day now from various users. I also think you'll like the new update going out, it will go a long way in helping to visualize all the data you're collecting.

    cheers
    brian

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.