Range Date report parameter

377 views
Skip to first unread message

Hardik Kubavat

unread,
Mar 12, 2015, 10:29:40 AM3/12/15
to idem...@googlegroups.com
Hi All,

I got stuck while customizing the adempiere reports using Jasper. I want Date Range Parameter in which 
  • If I pass Date1 and Date2 than accordingly we need to filter data.
  • If I Pass Date1 then for that date only records should be display.
But as per adempiere/jasper functionality if we pass date2 as blank it will take some default date automatically. Please advise.
I also tried with 2 different date parameter though problem is same. I need to pass blank/null date to jasper report from idempiere.

mzuniga

unread,
Mar 13, 2015, 6:01:40 AM3/13/15
to idem...@googlegroups.com
Hello Hardik, an option to solve your problem could be creating a condition in Jasper Parameter (Date2):
    IF Date2 (comming from IDempiere) IS NULL THEN apply to Date2 the value of Date1.

Best regards,

Marcos Zúñiga

Hardik Kubavat

unread,
Mar 13, 2015, 6:41:38 AM3/13/15
to idem...@googlegroups.com
Thanks mzuniga, 
But idempiere itselft send the current date to jasper when we put a blank or null date in Date2. We never get Date2 as null in jasper report.

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/bc587d33-1a62-496e-82d0-ecdb47a0892f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages