I have a filter for a grid and I have the initial value of that filter set to 2026. I just had to update it from 2025. Instead of hardcoding this filter initial value, can I have it default to the current year?
Announcement
Collapse
No announcement yet.
Grid filter initial value
Collapse
X
-
Absolutely. I would suggest creating an app variable named filterYear or similar and then linking that app variable to the Set Value property for that filter.
You can either set an expression for this new app variable:
Or attach a startup program to set the value via SetAppVar.Code:return new Date().getFullYear();

Comment