Attribute Sets configuration
The Attribute Sets provide the functionality to designate selected attributes for user inputs. They are used to designate the event layers and columns in the layers that the user will provide values for in the Add Linear Event widget. The administrator can create a preconfigured Attribute Set that can be accessed by any user of the Roadway Characteristics Editor. This preconfigured Attribute Set cannot be modified by the user, but it could be copied and then changed. A user can create new Attribute Sets that are stored in the web browser for local access. Also see:
The Attribute Sets are useful in limiting the number of record input fields while using the Add Linear Events widget. The users enter the records only in the fields provided by the Attribute Sets.
Expand All | Shows all the attribute fields present within each event layer. | |
Collapse All | Hides the attribute fields to show only the event layers. | |
Copy Selected Attribute Set | Copies all the attribute fields present in an event from the left panel to the attribute group in the right panel. The copy is made permanent only when you click the Save button. | |
New Attribute Set | Creates a new Attribute Set. The Attribute Sets created by using this button are saved in the browser. Therefore, these Attribute Sets are available only to the user's browser. | |
Remove Selected Attribute Set | Removes the selected Attribute Set from the widget. The administrator-configured Attribute Sets cannot be removed using this button. | |
New group | Creates a new group in the right panel. A group contains event attribute fields. An Attribute Set is made up of one or more groups. The group is saved permanently by clicking the Save button. | |
Remove Selected group, Layer, or Attribute | Removes a selected group, layer, or attribute from the right panel. The removal is made permanent by clicking the Save button. |
You can preconfigure an Attribute Set using the following steps.
- Open the config.json file in a text editor such as notepad.
For more information on using the config.json file for RCE, please see: Configuring the Roadway Characteristics Editor web application.
- In the config.json file, go to the "attributeSets" section.
Here, you can modify the title of the preconfigured Attribute Set and edit/add groups and event attributes. It is important to verify that the event layer attribute fields that are added or edited to the groups are published in the map service.
- To add event attribute fields into the groups, you can collect the information by visiting this web page <YourServerName>/ArcGIS/rest/services/<YourMapServerName>/MapServer in a browser
- You can find the layerId value in the Layers section of the web page.
-
You can get the event field names by clicking an event layer in the Layers section of the web page. Go to the Fields section.
- Using steps 4 and 5, you can write: { "layerId":3, "fields": { "Functional_class"} } in the json.config file.
- You can use steps 4, 5, and 6 to add more event attribute fields to the groups.
- Save the config.json file
In a web browser, navigate to the Roadway Characteristics Online application, then click Edit > Add Linear Events.. The preconfigured Attribute Set can be used to record attributes in this widget.