Trom'ka Powerappers,
i'm facing a really strange issue in my app.
The learn materials were taken by @RezaDorrani :
https://www.youtube.com/watch?v=6KlI1iZ_KD0
https://www.youtube.com/watch?v=eCMuXPI1Qok
Whenever I try to filter my gallery with a following code, it doesn't work at all. If I use only datepicker (Value(Text(DatePicker1.SelectedDate; "yyyymmdd")) = 'Erstellt am Number') condition, it works fine and I dont' know why!
SortByColumns(
Filter(
LeadTabelle;
StartsWith(LeadName; TextInput1_1.Text)
&&
(Status_Kunde = Dropdown2.Selected.Value || Dropdown2.Selected.Value = Blank())
&&
(DatePicker1.SelectedDate = Blank() || Value(Text(DatePicker1.SelectedDate; "yyyymmdd")) = 'Erstellt am Number')
);
"createdon";Ascending)
To avoid delegation warning, I created in my database extra int row ('Erstellt am Number') and populeted it with data in "yyyymmdd" format, and so I could format datepicker into value and compare it with my extra row, that I created. Somehow if i use Value('Erstellt am Number), it kind of works fine, but still with a delegation warning.
In my opinion, the proper way would be:
DateValue(DatePicker1.SelectedDate) = DateValue('Erstellt am')
However, it causes delegation warning. Again.
Dataverse is my datasource.
Any help would be really appreciated!