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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
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 (2)
1 Reply
Prashant_Naik20
Contributor III
Contributor III

Hi,

You need to evaluate the expression first and then need to pass the value in selectmatch function with the specified format the function asks. we cannot evaluate value in selectMatch function i think so.

i.e. app.field('reporting_year').selectMatch('2022','2021',true);

Regards,

Prashant