• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Grid filter initial value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Grid filter initial value

    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?

  • #2
    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:
    Code:
    return new Date().getFullYear();
    Or attach a startup program to set the value via SetAppVar.

    Comment


    • #3
      You could also use the NAB app variable 'nabCurrentYear'​

      Comment

      Working...
      X