Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Table setColSpan
Table setColSpan [message #1010240] Sun, 17 February 2013 00:35 Go to next message
Mimmo Rossi is currently offline Mimmo RossiFriend
Messages: 146
Registered: February 2013
Senior Member
Hi all,
i would set dinamically the colspan of my cell; i do it in a onprepare event ofa my table with a fixed value and it's work fine, but if i try to get the value from a persistentGlobalValue i receive an error becouse the value (that i take correctly in other place of my report) is null.I don't understand...can someone help me?
Thanks
Re: Table setColSpan [message #1010642 is a reply to message #1010240] Sun, 17 February 2013 23:13 Go to previous messageGo to next message
David Good is currently offline David GoodFriend
Messages: 41
Registered: September 2012
Member
Hi Mimmo,

Can you post the code you are using to set the colspan in onprepare?

Thanks,
David
Re: Table setColSpan [message #1010933 is a reply to message #1010642] Mon, 18 February 2013 13:56 Go to previous messageGo to next message
Mimmo Rossi is currently offline Mimmo RossiFriend
Messages: 146
Registered: February 2013
Senior Member
Hi David,
the problem isn't code, in fact if i put a number work fine, but if i get a variable in my onprepare event of a table they return null, seems that the onprepare event of a table is called before onFetch of my query.
Is correct or not?
Re: Table setColSpan [message #1011049 is a reply to message #1010933] Mon, 18 February 2013 18:26 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Onprepare is called for all items before data sets are executed. See
http://www.eclipse.org/birt/phoenix/deploy/reportScripting.php for the order. I am attaching an example that shows how to set the column span in the beforeFactory and the onCreate. Look at the script node in the outline view to locate the scripts.

Jason
Re: Table setColSpan [message #1011822 is a reply to message #1011049] Wed, 20 February 2013 10:13 Go to previous message
Mimmo Rossi is currently offline Mimmo RossiFriend
Messages: 146
Registered: February 2013
Senior Member
ok thanks
Previous Topic:Migration to Birt Runtime Engine 4.2.1 error
Next Topic:HowTo sum (accumulate) aggregate values in chart BIRT Eclipse
Goto Forum:
  


Current Time: Fri Apr 19 22:52:40 GMT 2024

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

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

Back to the top