Hi!
I have a Dropdown Searh and a Dropdown Tag in Reactive used in filtering. I need to reset the value of the dropdowns however the dropdowns are not associated directly to the vaiable that is being filtered by.
Can anyone help?
Regards,
Andi
Hey Andi,
I founded out that for some reason the DropDown Search widget was only being cleared in the first time.
For some reason assigning the var with the empty record was not triggering the change event.
Maybe because it is the same var and is not a new one.
As a work around I used the first element of the cleared list, and in that way both widget were cleared:
Follow a new .oml attached
Raphael Ranieri wrote:
That solves it!
Thank you, RR.
KInd regards,
it works, thanks =D @Doctor
Hi Andi,
If you reset both the variable that are associated to the widgets and the variables that are used to filter, you would not solve the problem?
Cheers and Regards,
RR :)
HI RR,
The problem with those two widgets is that they do not have a variable associated with them. You have to assign the variable on the OnChange of the widget.
Andi,
Take a look in the oml attached Sreen2 (Ignore Screen1 it was a ChartsSample that I reused)
In the widgets there is a selected Item property that you can associate with a dropdownItem var:
Just clean that var and it will clean your selection:
Same thing for DropDown tag. But instead of a DropDownItem the selected item variable will be a DropDownItem List.
Just make sure to clear also the variable you use to filter your aggregate (If this is your case) and refresh it if you want to reset the list.
Hope it helps :)
RR
Hello RR,
I have an issue regarding dropdown tags. I have two entities for eg State and City , from value of state dropdown values of cities should be available in dropdown tag. Issue is whenever i select new state the list of city is added in previous one and it keep goes on adding. I have cleared variable that passes value to dropdown tag. Cleared list and passes empty value to list too but nothing works. in debugging variable i am passing holds only desired values but in list it shows all the previous values too.
Issues are -
how to clear dropdown tag list as i have tried above mentioned methods too.
why all previous values are keep on adding.
Start a new post! This post already has a solution marked!
Good luck!
Kind regards,