Display only today data #11314
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @vaskoZGU, From the looks of the above screenshot it seems to be the sample data provided via using the internal Budibase db, not an external MySQL DB. Theres a few different ways you can achieve this. Are you wanting this to occur on load or are you wanting the users to be able to change this in the frontend? Below are a few quick examples showing how you can do this; You can use the dynamic filter component and write the query within the frontend using it. Or you can filter directly on the You can even use a date picker field to allow more control, instead of hardcoding the filter like the above you'd supply the form fields value as the value checked against. I hope this makes sense and is helpful. |
Beta Was this translation helpful? Give feedback.
Hey @vaskoZGU,
If you want only records of the current day I'd recommend adding the below JS inside that binding were that date is displayed in the last screenshot.
This will always default it to the current date at 00:00, meaning your data will be filtered by dates on a specific day.
I hope this makes sense.