Hi everyone,
I'm having a problem resetting my gallery to default. I use SQL Server as a database and had to add a dateInt column,
which converts the Date field from yyyy-mm-dd to yyyymmdd. This calculated column is the one I use to search my gallery.
When I start the app, all the records appear, and when I search by date range, the data is correct. Here's the code that performs the search:
Search(
Filter(
registro;
FechaInt >=(Year(DatePicker_busqueda_Inicio.SelectedDate) * 10000 + Month(DatePicker_busqueda_Inicio.SelectedDate) * 100 + Day(DatePicker_busqueda_Inicio.SelectedDate)
) &&
FechaInt <=(Year(DatePicker_busqueda_Fin.SelectedDate) * 10000 + Month(DatePicker_busqueda_Fin.SelectedDate) * 100 + Day(DatePicker_busqueda_Fin.SelectedDate)
)
);
busqueda_palabras.Text;
"Centro"; "Estado"; "Usuario"
)
If I do any search, it returns the results between both dates. The problem is when I want to reset the date controls and have all the records reappear.
If I do a normal reset like: Reset(DatePicker) the gallery doesn't show results. How can I fix this?
I would appreciate any help