Dear community,
I have a Gallery and a Searchbox and a Combobox
The user can specify his search-criteria in the searchbox. The app will then search in all the columns of the table.
I would also give the user the ability to specify in which column to search by specifying the columnname in the combobox.
So it has to check of the user has select an item from the combobox. If so, then the search-criteria must be search in that column. If not then the search-criteria must be searched in all columns.
This is the code of the gallery:
If(
Len(searchQuery) > 0;
SortByColumns(
Search(
dbEmployeeDirectory;
searchQuery;
"crcfa_voornaam";
"crcfa_achternaam";
"crcfa_afdeling";
"crcfa_titel";
"crcfa_computer";
"crcfa_badgenummer";
"crcfa_gebruikersid"
);
"crcfa_achternaam";
If(
SortDescending1;
SortOrder.Descending;
SortOrder.Ascending
)
)
)
How can this be done?
something like this:
If(!IsBlank(cbChoices.Selected.Value))
Search(
dbEmployeeDirectory;
searchQuery;
"crcfa_voornaam";
"crcfa_achternaam";
"crcfa_afdeling";
"crcfa_titel";
"crcfa_computer";
"crcfa_badgenummer";
"crcfa_gebruikersid"
);
If(cbChoices.Selected.Value)) = "Voornaam"
Search(
dbEmployeeDirectory;
searchQuery;
"crcfa_voornaam";
);
Gr. P

Report
All responses (
Answers (