|Re: accessing data between tables with different databinding [message #939215 is a reply to message #938303]
||Wed, 10 October 2012 14:29
| Blaine Mising name
Registered: December 2010
I did it and is a java.util.Date object|
I solved it with labels and this code in onCreate method:
importPackage( Packages.java.text );
var mydt1 = reportContext.getGlobalVariable("BDATE");
var sdf = new SimpleDateFormat("dd-MM-yyyy HH:mm", reportContext.getLocale());
var mydtf1 = sdf.format( mydt1 );
this.text = mydtf1;
But I don't understand why is not working with edit objects. I updated to Birt 4.2.1 but with same results. Can be a bug?
I've other problem, I want to check if products are delayed or not, and if they are not delayed, hide all the row, because the table has a databinding with all the products.
I implemented the code in Visibility expression property of the row, and it works fine, only products delayed are shown, but the pages in browser has different number of visible rows.
It happens because birt takes account the number of total rows, and not only visible rows. For example, the second page only shows 3 products, and the third page shows 15.
How can I solve this and show the same number of visible rows per page?
[Updated on: Wed, 10 October 2012 14:46]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02308 seconds