Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Change Table Group interval in script
Change Table Group interval in script [message #893327] Tue, 03 July 2012 10:45 Go to next message
karvesh ghunsam is currently offline karvesh ghunsam
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 09:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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 11:27 Go to previous message
karvesh ghunsam is currently offline karvesh ghunsam
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: Sat Aug 30 16:35:24 EDT 2014

Powered by FUDForum. Page generated in 0.01728 seconds