Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to select dates with the API syntax?

Hello,

What is the correct syntax for selecting date fields in the API?

app.field('LastName').selectValues([{qText: "Andersson"}], true, true);

works for texts, but

app.field('Created Date').selectValues([{qText: "2014-10-30"}], true, true);

does not work for dates.

2 Replies
Ralf-Narfeldt
Employee
Employee

You could try using the numeric value of the date instead.

Num('2014-10-30') would be 41942

Not applicable
Author

Thanks for the idea, but that does not seem to work either.