amarsden

TypeError using layerDefinitions, dates and a AND

Discussion created by amarsden on Feb 24, 2012
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

Outcomes