Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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)