Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to dynamically set the grouping range value for a table?
How to dynamically set the grouping range value for a table? [message #677092] Tue, 07 June 2011 10:49 Go to next message
Mike Wulkan is currently offline Mike Wulkan
Messages: 141
Registered: July 2009
Senior Member
For my charts I put the following in the beforeFactory script in order to dynamically set the group interval for the chart.

chart1 = this.getReportElement( "MemoryChart" );
catg = chart1.getCategory().getGrouping();
catg.setEnabled( true );
catg.setGroupInterval(params["Time Buckets"].value);

I'd like to do the same thing for a table; can someone please provide me with the equivalent script to set the range value for a group interval in a table?
Re: How to dynamically set the grouping range value for a table? [message #677112 is a reply to message #677092] Tue, 07 June 2011 11:40 Go to previous messageGo to next message
Mike Wulkan is currently offline Mike Wulkan
Messages: 141
Registered: July 2009
Senior Member
I think I've found the answer...

var group = reportContext.getDesignHandle().findElement("Bottleneck Table").getGroups().get(0);
group.setIntervalRange(params["Time Buckets"].value);
(no subject) [message #677190 is a reply to message #677112] Tue, 07 June 2011 12:53 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Mike

Thanks for posting your solution.

Jason

On 6/7/2011 11:40 AM, Mike Wulkan wrote:
> I think I've found the answer...
>
> var group = reportContext.getDesignHandle().findElement("Bottleneck
> Table").getGroups().get(0);
> group.setIntervalRange(params["Time Buckets"].value);
Previous Topic:Newby to BIRT
Next Topic:Need A dynamic line With Underlined Data upto its full Cell Width
Goto Forum:
  


Current Time: Wed Aug 20 07:01:10 EDT 2014

Powered by FUDForum. Page generated in 0.01585 seconds