|
Re: How to use same data field as two report parametrs in BIRT [message #1415882 is a reply to message #1415668] |
Wed, 03 September 2014 22:22 |
|
You might need to do your logic a bit different. Like:
if(BirtComp.notEqual(params["actstart"], null) && BirtComp.notEqual(params["actstart1"], null) ){
wotrack_where += " and a.actstart between "
+ MXReportSqlFormat.getStartDayTimestampFunction(params["actstart"]) + " and " + MXReportSqlFormat.getEndDayTimestampFunction(params["actstart1"]);
}
else if( BirtComp.notEqual(params["actstart"], null) ) {
wotrack_where += " and a.actstart >= "
+ MXReportSqlFormat.getStartDayTimestampFunction(params["actstart"]);
}
else( BirtComp.notEqual(params["actstart1"], null) ) {
wotrack_where += " and a.actstart <= "
+ MXReportSqlFormat.getEndDayTimestampFunction(params["actstart1"]);
}
Or something like that. This is just a guess that having your where as it is with a.actstart limited twice is causing the issue. Let me know.
Michael
Developer Evangelist, Silanis
|
|
|
Powered by
FUDForum. Page generated in 0.03737 seconds