Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » how to set the content of a text element runtime in brit 2.2.1
how to set the content of a text element runtime in brit 2.2.1 [message #691861] Sat, 02 July 2011 16:12 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 81
Registered: April 2011
Member
the question is very simple, I have a text element and I want set its content property at runtime, but I google a long time but still cannot found the method (using script), how to do it and where is the related documentation?

Thanks.

I am using birt designer 2.2.1
Re: how to set the content of a text element runtime in brit 2.2.1 [message #692137 is a reply to message #691861] Sun, 03 July 2011 17:12 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I am not certain this works in 2.2.1 but can you try adding a text
element to a report and set its type to html. Put any text in it as it
will get replaced. In the onCreate enter a script like:

this.text = "<b>my text element test </b>";

Jason

On 7/2/2011 12:12 PM, forums-noreply@eclipse.org wrote:
> the question is very simple, I have a text element and I want set its
> content property at runtime, but I google a long time but still cannot
> found the method (using script), how to do it and where is the related
> documentation?
>
> Thanks.
>
> I am using birt designer 2.2.1
Previous Topic:Accumulations in CrossTabs
Next Topic:Birt 2.x: Charts cut in PDF output
Goto Forum:
  


Current Time: Fri Apr 26 21:11:41 GMT 2024

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

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

Back to the top