Setting ComboBox elements based on a selection in another ComboBox
I have a Display Form where I want a user to select a value in one ComboBox, then populate the elements of a second ComboBox (i.e. QueryServiceUrl, QueryDisplayOutputField, QueryValueOutputField, etc.) based on the value of the selected item in the first ComboBox.
For example, the first ComboBox is a list of Search Areas (e.g. Asset Districts, Watershed, Neighborhood, etc.). Once the user selects the Search Area, the second ComboBox needs to populate the QueryServiceUrl for the corresponding layer, and then the Display and Value fields based on the first choice (e.g. users selects Neighborhood, so second ComboBox uses neighborhoodServiceUrl for QueryServiceUrl, DisplayField is "NEIGHBORHOOD_NAME", etc.).
I thought I could use an If activity to evaluate the value of the first ComboBox in the Runtime Modifications but, of course, it is not even instantiated at the Display Form -> Runtime so I immediately get an error that a reference to an object is not an instance of object.
How can I base the elements of a ComboBox on the selection made in another ComboBox in the same Display Form?
0
-
Thanks, Francesca, it doesn't look promising at first glance. . . . 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar