Dear community,
I have a Textbox for searching in a gallery and a search icon and a cancel icon.
The OnSelect of the cancel icon is set to: Set(searchQuery;"")&& Reset(TextBox1)
Now i need code for clearing the gallery when the user deletes the text in the textbox;
I have tried it myself to empty the variable when the textbox is empty in the OnChange of the textbox. but no luck:
If(
Len(TextBox1.Value) = 0;
searchQuery;""
)
This is the code of the gallery:
If(
Len(searchQuery) > 0;
Search(
dbEmployeeDirectory;
searchQuery;
"crcfa_voornaam"
)
)
Gr. Peter