
Specialist
2022-06-02
06:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
368 Views
1 Reply

Contributor II
2022-06-06
04:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
334 Views
