Here's the paraphrased scenario:
In Screen2, I have a multi-select dropdown that receives its initial data from the "getJurisdictionName" data action in Screen1.
When I click a button on the first screen, I get redirected to Screen2 with the dropdown containing all the values obtained in Screen1, as I pass these values as input parameters to Screen2.
This dropdown includes values for countries, states, and cities.
However, my requirement is that when I select a state, I want to refresh the dropdown list to show only the cities from select state. To achieve this, I make a server call to retrieve the updated list. I then assign this new list to the same variable that is bound to the ItemList of the dropdown in the dropdown's change event. Despite updating the variable with the new list, the dropdown continues to display the old list, not the one with the updated data.
Can anyone help me with this?
Hi Bhushan,
Can you share the oml
Hello, Please find the attached OML
This OML has multi select drop down and entity is GeoList which is used as list to dropdowntags.
Dropdown is showing GeoName, when i select Miami from down as first item then drop down should show me only those name which will have GeoParentName as Florida. But even after refreshing the list it is showing all the list which was originally attached.
if i select Miami then all option should be from florida like below
Jacksonville
Tampa
Tallahassee
Coral Springs
Hello Bhushan,
You can refer this post where I have given one demo.
https://www.outsystems.com/forums/discussion/87778/how-to-retrieve-list-of-records-in-dropdown-tags-based-on-anothe-dropdown-tags/
Hope it helps you.
Thanks.
This use case is not helping. Here there are 2 dropdown tags. In my case there is only dropdown tags.
Here is an example my use case: Dropdowntags -> I have provided ItemList which has all the countries ( example: United State, India, Brazil, UK) + ( all the states + all the cities ) : What I am trying to here is in in my multi select if user selects first city or state. If he select the state Florida then I want to show only florida State and cities informaiton. Which I am getting feom server call but somehow this drop still shows all the records.
How to amice this , One more thing I am doing all this in OnChange event of dropdown tag.
Possible to share your OML it will help to understand more clearly.
This is project specific use case i might not be able to provide oml. but what i am trying is when first item selected from multi select dropdwon tags then based on that value i want to filter the remaining list items. Some how my dropdown is not shwoing the updated list.
adding to this i am using advance formatting on dropdown tags as below
"{ ""renderChoiceLimit"": 10, ""searchFloor"": 2, ""shouldSort"":false}"
Coral Spri
hi Bhushan,
As you stated you made a server call to retrieve the updated list and then assign this new list to the same variable that is bound to the ItemList of the dropdown in the dropdown's change event. Despite updating the variable with the new list, the dropdown continues to display the old list, not the one with the updated data.
Are you using traditional web application?
Then, It seems you are missing "Ajax Refresh" widget to refresh the dropdown widget after fetching/updating the new ItemList of dropodown using server call.
Please check if this helps.
I do not see any option of Ajax Refresh, From where should I add this to my application i can only see Refresh Data but not the Ajax Refresh
Can you please share example OML as per your scenario.