Select to view content in your preferred language

Edit domain of feature layer (hosted, view)

1472
2
Jump to solution
03-15-2023 12:03 PM
mshanaghan
Frequent Contributor

I'm using Enterprise Portal 10.9.1 (Windows) and trying to deploy the Citizen Problem Reporter Solution. 

According to documentation, I should be configuring the solution within the portal using the Solutions app, not using the Deploy Solution Tool Add-In in ArcGIS Pro. Even if I wanted to use the Deploy Solutions tool in Pro, I couldn't because it is incompatible with my version of Pro (3.0.3).

I'm having trouble editing/creating domains for "Type of Problem" of the hosted feature layer views within the solution (blight problems, Animal problems, etc.). When I go to the item page for the hosted feature layer view -> Data -> Fields -> Type of Problem, the List of Values (Domain) is not editable. See screencap below.

mshanaghan_0-1678906420263.png

I can't figure out how to edit this domain within the portal and I can't use the Solutions Deployment Tool Add-In because it is incompatible with my version of Pro. The Configure the Solution documentation says to use the Deployment tool to modify domains, but as far as I know, that is not possible. 

Any ideas?

0 Kudos
1 Solution

Accepted Solutions
ChrisFox
Esri Regular Contributor

@mshanaghan, I will say this process is much easier now in ArcGIS Online and Enterprise 11.0, but if you want to host the solution in Enterprise 10.9.1 these way you would need to do this without the Solutions Deployment Tool is through the REST admin api. Below are the steps:

  1. Go to the item details of the view, for example CitizenProblems_animal
  2. Click the Citizen Problems layer under the layers list and click the 'View' button next to 'URL'
  3. This opens a new tab and in the url of the broswer add 'admin' between 'rest' and 'services' in the path. For example: /server/rest/admin/services/Hosted/CitizenProblems_animal and hit enter to go to the page.
  4. Scroll to the bottom of the page and click Update Definition
  5. Use the json below to customize the domain options and paste it into the Input and click updateDefinition

 

{
    "fields": [{
            "name": "probtype",
            "domain": {
                "type": "codedValue",
                "codedValues": [{
                        "code": "Animal Abuse",
                        "name": "Animal Abuse"
                    }, {
                        "code": "Animal Bite",
                        "name": "Animal Bite"
                    }, {
                        "code": "Barking or Noisy Dog",
                        "name": "Barking or Noisy Dog"
                    }, {
                        "code": "Dangerous Animal",
                        "name": "Dangerous Animal"
                    }, {
                        "code": "Dead Animal",
                        "name": "Dead Animal"
                    }, {
                        "code": "Pest Infestation",
                        "name": "Pest Infestation"
                    }, {
                        "code": "Rodent Activity",
                        "name": "Rodent Activity"
                    }, {
                        "code": "Other",
                        "name": "Other"
                    }
                ]
            }
        }
    ]
}​

 

 

You can repeat these steps for each view

View solution in original post

0 Kudos
2 Replies
ChrisFox
Esri Regular Contributor

@mshanaghan, I will say this process is much easier now in ArcGIS Online and Enterprise 11.0, but if you want to host the solution in Enterprise 10.9.1 these way you would need to do this without the Solutions Deployment Tool is through the REST admin api. Below are the steps:

  1. Go to the item details of the view, for example CitizenProblems_animal
  2. Click the Citizen Problems layer under the layers list and click the 'View' button next to 'URL'
  3. This opens a new tab and in the url of the broswer add 'admin' between 'rest' and 'services' in the path. For example: /server/rest/admin/services/Hosted/CitizenProblems_animal and hit enter to go to the page.
  4. Scroll to the bottom of the page and click Update Definition
  5. Use the json below to customize the domain options and paste it into the Input and click updateDefinition

 

{
    "fields": [{
            "name": "probtype",
            "domain": {
                "type": "codedValue",
                "codedValues": [{
                        "code": "Animal Abuse",
                        "name": "Animal Abuse"
                    }, {
                        "code": "Animal Bite",
                        "name": "Animal Bite"
                    }, {
                        "code": "Barking or Noisy Dog",
                        "name": "Barking or Noisy Dog"
                    }, {
                        "code": "Dangerous Animal",
                        "name": "Dangerous Animal"
                    }, {
                        "code": "Dead Animal",
                        "name": "Dead Animal"
                    }, {
                        "code": "Pest Infestation",
                        "name": "Pest Infestation"
                    }, {
                        "code": "Rodent Activity",
                        "name": "Rodent Activity"
                    }, {
                        "code": "Other",
                        "name": "Other"
                    }
                ]
            }
        }
    ]
}​

 

 

You can repeat these steps for each view

0 Kudos
mshanaghan
Frequent Contributor

Yay! Thank you so much. Worked perfectly.

0 Kudos