Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
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 II
Contributor II

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