|
|
|
Re: dataset filter in subreports [message #869861 is a reply to message #869703] |
Fri, 04 May 2012 10:56  |
Eclipse User |
|
|
|
Mike
Try an expression like:
if( BirtComp.greaterThan(row["ORDERDATE"],
params["datetimefilter"].value) ){
true;
}else{
false;
}
See attached example.
Jason
On 5/3/2012 6:14 PM, Mike Johnson wrote:
> ... and this will work as well with dates i.e. if (startDate >=
> paramStartDate)
> true;
> else
> false;
>
>
> ...filter "is true" --- accept records that are greater or equal to the
> main report report startDate parameter.
>
> i was wondering if the main report startdate parameter is "datetime" and
> the database report startdate field is "date" format will the logic test
> still work?
|
|
|
Re: dataset filter in subreports [message #869863 is a reply to message #869703] |
Fri, 04 May 2012 10:56  |
Eclipse User |
|
|
|
Mike
Try an expression like:
if( BirtComp.greaterThan(row["ORDERDATE"],
params["datetimefilter"].value) ){
true;
}else{
false;
}
See attached example.
Jason
On 5/3/2012 6:14 PM, Mike Johnson wrote:
> ... and this will work as well with dates i.e. if (startDate >=
> paramStartDate)
> true;
> else
> false;
>
>
> ...filter "is true" --- accept records that are greater or equal to the
> main report report startDate parameter.
>
> i was wondering if the main report startdate parameter is "datetime" and
> the database report startdate field is "date" format will the logic test
> still work?
|
|
|
Re: dataset filter in subreports [message #869864 is a reply to message #869703] |
Fri, 04 May 2012 10:56  |
Eclipse User |
|
|
|
Mike
Try an expression like:
if( BirtComp.greaterThan(row["ORDERDATE"],
params["datetimefilter"].value) ){
true;
}else{
false;
}
See attached example.
Jason
On 5/3/2012 6:14 PM, Mike Johnson wrote:
> ... and this will work as well with dates i.e. if (startDate >=
> paramStartDate)
> true;
> else
> false;
>
>
> ...filter "is true" --- accept records that are greater or equal to the
> main report report startDate parameter.
>
> i was wondering if the main report startdate parameter is "datetime" and
> the database report startdate field is "date" format will the logic test
> still work?
|
|
|
Re: dataset filter in subreports [message #869867 is a reply to message #869703] |
Fri, 04 May 2012 10:56  |
Eclipse User |
|
|
|
Mike
Try an expression like:
if( BirtComp.greaterThan(row["ORDERDATE"],
params["datetimefilter"].value) ){
true;
}else{
false;
}
See attached example.
Jason
On 5/3/2012 6:14 PM, Mike Johnson wrote:
> ... and this will work as well with dates i.e. if (startDate >=
> paramStartDate)
> true;
> else
> false;
>
>
> ...filter "is true" --- accept records that are greater or equal to the
> main report report startDate parameter.
>
> i was wondering if the main report startdate parameter is "datetime" and
> the database report startdate field is "date" format will the logic test
> still work?
|
|
|
Powered by
FUDForum. Page generated in 0.03626 seconds