70
Views
5
Comments
Solved
[OutSystems Data Grid] SearchData DataGrid Accelerator does not search dates on the format used in the Grid
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Currently, the search does not actually search on the format as shown in the table... it uses the OutSystems format. Is there a way to change this? If I were to search for '10-01-2023' then it shows blank, if I search as shown below then it finds it... so it is searching the data behind and not the data shown in the grid. How can I change this if it is even possible? I don't want the Grid format to change - I want the search to be able to search the current date format in the grid...

2022-11-02 07-18-33
Nicholas Campbell
Solution

Turns out that this has been fixed in later versions of the grid. 

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @Nicholas Campbell 

Are you using client or server-side search?
Can you please share a sample oml so that we can try to help?

Cheers,
GM

2022-11-02 07-18-33
Nicholas Campbell

Hi

Client-side search. I will not get to that for a bit, if no one else answers soon I will do that.

2025-02-12 23-46-07
Rúben Simões
Champion

Hi,

With your situation, I would transform the data afterwords. What I mean is, you would insert the '10-01-2023' and after transform to 'FormatDateTime(TextToDate(YourInputVar) ,"dd-MM-yyyy")' and use the output to search in your table.

2022-11-02 07-18-33
Nicholas Campbell

I may be misunderstanding your idea. But if not, this will not work since we do not have access to the text entered into this search component - it ties with the Grid via Id - the search it not manual where you use the text to filter...

2022-11-02 07-18-33
Nicholas Campbell
Solution

Turns out that this has been fixed in later versions of the grid. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.