Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlik1_User1
Specialist
Specialist

How to pass dynamic values to selectmatch api

Below script not working when passing dynamic year in mashup (JavaScript section).

app.field('reporting_year').selectMatch('year(today())', true);

Please help on this.

Labels (3)
1 Solution

Accepted Solutions
Qlik1_User1
Specialist
Specialist
Author

Below is the solution
app.field('reporting_year').selectMatch(String(new Date().getFullYear()), true)

View solution in original post

1 Reply
Qlik1_User1
Specialist
Specialist
Author

Below is the solution
app.field('reporting_year').selectMatch(String(new Date().getFullYear()), true)