Set dropdown list value dynamically.
Hi Folks...I have following scenario..
1st dropdown shows ('...','US', 'UK', 'China') with following object items and label field as 'country'
[{id:0, country:"..."},{id:1, country:"US"},{id:2, country:"UK"},{id:3, country:"China"}]
2nd dropdown shows('...','New York','London','Beijing') with following object items and label field as 'city'
[{id:0, cid:0, city:"..."},{id:1, cid:1, city:"New York"},{id:2, cid:2, city:"London"},{id:3, cid:3, city:"Beijing"}]
and a 'Reset' button.
How do I set 1st dropdown list to 'UK' dynamically when I am selecting 'London' in 2nd dropdown list using Geocortex Workflow 5? Also looking filter in 2nd dropdown i.e selecting 'UK' in 1st dropdown should contain only these [{id:0, cid:0, city:"..."},{id:2, cid:2, city:"London"}] objects in 2nd dropdown, upon click of reset button should reset dropdowns to there original values i.e. contain all the items in both the dropdowns by default selecting '...' in both of them. providing a sample workflow will be much appreciated..
Thanks
vm.
-
Here I am attaching my working copy.. can someone please provide some shade on it... I am new to Geocortex software... Thanks in advance..
1 -
Hello Venkat,
With the next release of Workflow 5, we are introducing an activity called Set Current Form Element Item, which will solve this use case.
Thanks, Stefan
0 -
Hi Stefan,
Thank you for the information.
vm.?
0 -
?When exactly the next release is going to be happened?
Thank you.
vm
0 -
No problem, it should be available near the end of this month.
0 -
Hi Stefan,
Looks like 'Set Current Form Element Item' activity is included in WF5 now, How will I set country dropdown to US if I am selecting 'New York' in cities dropdown in above attached WF file..
Thanks.
0 -
Hello Venkat,
Take a look at the shared workflow GW5 - Set Current Form Element Item (https://latitudegeo.maps.arcgis.com/home/item.html?id=ac55517624f24523b3c4012e93be128d) for an example of its usage within the click event for the button bar within the form.
In your example, you will need some logic to determine which city is related to which country so that the selected option in the country dropdown is updated correctly.
Thanks, Stefan
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
7 kommentarer