Hello,
I'm trying to figure how how to inform the user while a combobox is loading. I have 2 cascading combo boxes. The first combobox is loaded with values on App start. The user makes a selection in combobox 1, and this selection is used to filter the results for combobox 2. This is a query that runs over the gateway and can take a second or two to load, so during this time, I'd like to display a "Please wait - loading . . " message in the 2nd combobox.
What I have so far is in the 1st combobox OnSelect property I set a variable to as follows:
Set(IsLoading, True);
Then in the 2nd combobox InputTextPlaceholder method, I check this variable and display the message a message:
If(IsLoading, " Please wait", "Select choice");
Also, in the 2nd combobox Items property, I have a filter:
Filter ('datasource', ChoiceID = Combobox1.Selected.Choice).ID
What I can't figure out is once the Items have loaded in Combobox 2, how do I change the variable back to false? I get an error if I place this in the ComboBox2.Items property:
Filter ('datasource', ChoiceID = Combobox1.Selected.Choice).ID;
Set(IsLoading, false);
"Behvaior function in a non-behavior property".
I can't seem to figure out a way to accomplish what I'd like to do. Any thoughts?
Solved! Go to Solution.
Hey @Anonymous
Hey @Anonymous
Thanks Yashag2255,
I understood why I couldn't set the variable, just couldn't construct another way of achieving the same objective. Your method is perfect!