Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 14:49 Go to next message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
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 15:40 Go to previous messageGo to next message
Mike Wulkan is currently offline Mike WulkanFriend
Messages: 147
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 16:53 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
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: Fri Mar 29 07:03:27 GMT 2024

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

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

Back to the top