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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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)