Date parameter not Working [message #1058988] |
Thu, 16 May 2013 03:00  |
Eclipse User |
|
|
|
Hi All,
I am using BIRT 2.3.2. I have to pass my date parameter as string like 2013
and my query is as follows
var sqld= new String();
sqld= '2013' ;
// Add query to sqlText variable.
sqlText =" select pmnum,SITEID,(select description from locations where pm.location = locations.location) "
+ "as Site, "
+ "(select wonum from workorder where "
+ "workorder.pmnum = pm.pmnum and targstartdate > sqld+'-07-01' and targstartdate "
+ "<'2013-08-01') as july "
+ " from pm where siteid = 'BEDFORD' "
+ "and status = 'ACTIVE' "
+ "and pfmanticipated > 0 "
+ "ORDER BY pmnum "
as when i am trying to put targetstartdate> sqld+'-07-01' it is not showing me any results but if i will hard code like targetstartdate> '2013'+'-07-01' it is pulling data properly. Can you guide me what i am doing wrong here. Cheers
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02996 seconds