Hi, I have below formula in my gallery item property.
Sort( If( IsBlank(DatePicker2), Filter( '【FSC】CCDiary', StartsWith( ID, TextInput2.Text ) || StartsWith( customer, TextInput2.Text ) || StartsWith( store, TextInput2.Text ) ), Filter( '【FSC】CCDiary', StartsWith( ID, TextInput2.Text ) || StartsWith( customer, TextInput2.Text ) || StartsWith( store, TextInput2.Text ), ThisRecord.Date >= DatePicker2.SelectedDate, ThisRecord.Date < DateAdd( DatePicker2.SelectedDate, 1 ) ) ), Date, SortOrder.Descending )
I have created two filter which is a date picker and text input box.
Screen OnVisible
UpdateContext({varReset:true});UpdateContext({varReset:false})
Date Picker
Reset property varReset
Default empty
Text Input
Reset property varReset
Default empty
I would like for the gallery to reset and show all items when I move back and forth from screen.
When I don't set any variables in text input reset property, it will show all items.
But If I set reset property to text input, it will return blank.
Grateful for any help you can give me.