Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Change Table Group interval in script
Change Table Group interval in script [message #893327] Tue, 03 July 2012 14:45 Go to next message
karvesh ghunsam is currently offline karvesh ghunsamFriend
Messages: 95
Registered: July 2011
Member
Dear All,

I have a table with a grouping
I want to be able to change the grouping interval of the table in script. See screenshot:

index.php/fa/10545/0/


I came across a code that does the similar work for charts, but i am having some problem for tables

var chart1 = this.getReportElement( "MyChart" )
catg = chart1.getCategory().getGrouping();
catg.setGroupUnit(params["paramTimeUnit"]);


Any kind help?

Thanks!
Karvesh
Re: Change Table Group interval in script [message #893792 is a reply to message #893327] Thu, 05 July 2012 13:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Look at beforeFactory script in attached example.

Jason

On 7/3/2012 10:45 AM, karvesh Mising name wrote:
> Dear All,
>
> I have a table with a grouping
> I want to be able to change the grouping interval of the table in script. See screenshot:
>
>
>
>
> I came across a code that does the similar work for charts, but i am having some problem for tables
>
>
> var chart1 = this.getReportElement( "MyChart" )
> catg = chart1.getCategory().getGrouping();
> catg.setGroupUnit(params["paramTimeUnit"]);
>
>
> Any kind help?
>
> Thanks!
> Karvesh
>
Re: Change Table Group interval in script [message #893828 is a reply to message #893792] Thu, 05 July 2012 15:27 Go to previous message
karvesh ghunsam is currently offline karvesh ghunsamFriend
Messages: 95
Registered: July 2011
Member
Dear Jason

Thanks a lot!! Smile
Previous Topic:Load font by relative path instead of full path for birt 3.7.2
Next Topic:Values in a chart are not in sorting order
Goto Forum:
  


Current Time: Fri Apr 26 03:12:15 GMT 2024

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

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

Back to the top