
Announcements
Dear Community,
In my app i want to show all the people who's birthday is today.
In my app i have a gallery with a seachbox. I want to add a button
to show all the people who's birthday is today.
What is the code for the button if i want to search in the column "Geboortedatum"
where the date has the format "dd-MM-yyyy". on today's date i guess i need the code NOW()
And what should the code in the Gallery be:
If(
Len(searchQuery) > 0;
SortByColumns(
Search(
dbEmployeeDirectory;
searchQuery;
"crcfa_voornaam";
"crcfa_achternaam";
"crcfa_afdeling";
"crcfa_titel";
"crcfa_computer";
"crcfa_badgenummer";
"crcfa_gebruikersid";
"crcfa_geboortedatum"
);
"crcfa_achternaam";
SortOrder.Ascending
)
)
Gr. P
Hi @PeKi72 ,
You would need something like this
If(
Len(searchQuery) > 0;
SortByColumns(
Search(
Filter(
AddColumns(
dbEmployeeDirectory;
"GDatum";
Text(Geboortedatum,"ddmm")
);
GDatum = Text(Today,"ddmm")
);
searchQuery;
"crcfa_voornaam";
"crcfa_achternaam";
"crcfa_afdeling";
"crcfa_titel";
"crcfa_computer";
"crcfa_badgenummer";
"crcfa_gebruikersid";
"crcfa_geboortedatum"
);
"crcfa_achternaam";
SortOrder.Ascending
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps