50
Views
5
Comments
Dropdown search issue

I have 2 dropdown search one is for countries and other is for states. When a country is selected, the belonging states will appear in other dropdown search. At first i am selecting some states belonging to one country and after that when i selecting the country the values are disappearing.

Suppose LA, California, NYC are states that iam selected first and in the country i selected USA. Here states are disappearing from the dropdown. 

How can we achieve this?

2023-10-21 19-42-11
Tousif Khan
Champion

Hello

You can refer to the Solution hope  it might help

https://www.outsystems.com/forums/discussion/82888/how-to-do-cascade-drop-down-search/

Thanks & Regards
Tousif Khan

2022-07-21 04-14-52
Nihaal

Hi Tousif,

My question is i am first selecting states and then the country, but states are missing as we are refreshing the states aggregate based on country. I want states not to be missed as USA contains those states. 


2022-12-09 09-54-41
Gaurav Rawat

Hi Nihaal,

I think problem is mapping in your data please check is there proper coutryId in these state table.

I think CountryId is different from USA in these states.


Thanks,

Gaurav Rawat


2019-08-28 11-43-22
Bruno Marques

Hi,

Attached an oml that might help you.

Cheers

DropdownCascadeFilter.oml
2022-06-06 09-58-43
Gourav shukla

Hi,

     you change the state fetch property to at start and remove the refresh aggregate to country client action or if you want to fetch country according to state so apply same rule that you apply in state aggerate and country client action.    

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.