Select to view content in your preferred language

TypeError using layerDefinitions, dates and a AND

636
0
02-24-2012 02:24 AM
AdrianMarsden
Regular Contributor II
Hi

I'm passing two parameters to a map, car number plate and date.  It fails - Date on its own works - the debug is;

layerDefinitions: Array[1]
0: "time>'2012-02-16'"


Car Reg (twice to prove the AND works) also works

layerDefinitions: Array[1]
0: "vehreg='BF58UJJ' and vehreg='BF58UJJ'"


But car Reg and date fails, with a "TypeError"

layerDefinitions: Array[1]
0: "time>'2012-02-16' and vehreg='BF58UJJ'"


I'm using the latest (2.7) version of the API in compact mode.

Any ideas?

Cheers

ACM
0 Kudos
0 Replies