Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Retrieve Column Index(How do I get the column index to use in a table filter?)
Retrieve Column Index [message #637800] Mon, 08 November 2010 22:28 Go to next message
Jim is currently offline JimFriend
Messages: 19
Registered: July 2009
Junior Member
We are using Birt 2.5

I have a report with tables nested inside of a main table. For the nested tables, I would like to use the column index of the parent table column that the table is nested in as part of a filter for the nested table. Is there a way to easily get the parent column index for use in a nested table filter?

Thanks
Re: Retrieve Column Index [message #638023 is a reply to message #637800] Tue, 09 November 2010 16:21 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You could always check it against the container cellid like:

var mytable =reportContext.getDesignHandle().findElement("innertable");
mytable.getContainer().getID();

equals

95

Note that the inner table is named and it is contained in cell id 95 of
the outer table.

Jason

On 11/8/2010 5:28 PM, Jim wrote:
> We are using Birt 2.5
>
> I have a report with tables nested inside of a main table. For the
> nested tables, I would like to use the column index of the parent table
> column that the table is nested in as part of a filter for the nested
> table. Is there a way to easily get the parent column index for use in a
> nested table filter?
>
> Thanks
>
Previous Topic:How do i integrate birt report with java
Next Topic:Cascading parameter default value problem
Goto Forum:
  


Current Time: Mon Dec 22 07:46:27 GMT 2014

Powered by FUDForum. Page generated in 0.01892 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software