Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

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
rnt
Not applicable

Re: How to select dates with the API syntax?

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

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

Not applicable

Re: How to select dates with the API syntax?

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