
Is there a button that "On Select" could clear out the DefaultSlectedItems? I have a gallery and by default I only want to show the following status' ["New Entry","Vendor Security Review","Security Reviewed/Awaiting Assessment","Upcoming Reviews for Assessment","Assessing","On hold","Pending Timeline","Awaiting Documentation","RFP/Demo","Viability Review","IT Executive Council","MEDITECH Pathway"] but if a user wants to see EVERYTHING, I would like to give them the option to select a button to clear these from the status.
Hi @mkAveraHealth ,
I suggest to use a variable for this property instead of hard coding it. Let's say inthe Screen.OnVisible property you set it to:
UpdateContext({varFilter:["New Entry","Vendor Security Review","Security Reviewed/Awaiting Assessment","Upcoming Reviews for Assessment","Assessing","On hold","Pending Timeline","Awaiting Documentation","RFP/Demo","Viability Review","IT Executive Council","MEDITECH Pathway"]})
Then set the DefaultSelectItems propert of the combo box to:
varFilter
In the OnSelect property of your button you can then use a similar code as for the Screen.Onvisible property, but add the missing items.