Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Inconsistenty between Pheonix ROM and BIRT 2.5 ?
Inconsistenty between Pheonix ROM and BIRT 2.5 ? [message #468120] Tue, 04 August 2009 09:00 Go to next message
Maxim Veksler is currently offline Maxim VekslerFriend
Messages: 28
Registered: July 2009
Junior Member
Hello,

New to BIRT. Using BIRT 2.5 as embedded library in a servlet.

I've tried to defined some script based logic on a Text field, I wanted to
replace the text that is being displayed to the user.

Looking at the ROM,
http://www.eclipse.org/birt/phoenix/ref/rom/elements/Text.ht ml#Property-content
it seems that I need to define [[this.content = "ABC"]]

Trying this did not work, but setting [[this.text = "ABC"]] did

I don't see "Text.text" specified any where in the specifications.

Am I looking at the wrong place?
Re: Inconsistenty between Pheonix ROM and BIRT 2.5 ? [message #468272 is a reply to message #468120] Tue, 04 August 2009 18:45 Go to previous messageGo to next message
John Ward is currently offline John WardFriend
Messages: 16
Registered: July 2009
Junior Member
Use a dynamic text element, then you can implement your script logic in
the expression like:

if (a == "abc")
{
"abc";
}
else
{
"def";
}

That ROM documentation hasn't been updated in some time.

John

Maxim Veksler wrote:
> Hello,
>
> New to BIRT. Using BIRT 2.5 as embedded library in a servlet.
>
> I've tried to defined some script based logic on a Text field, I wanted
> to replace the text that is being displayed to the user.
>
> Looking at the ROM,
> http://www.eclipse.org/birt/phoenix/ref/rom/elements/Text.ht ml#Property-content
> it seems that I need to define [[this.content = "ABC"]]
>
> Trying this did not work, but setting [[this.text = "ABC"]] did
>
> I don't see "Text.text" specified any where in the specifications.
>
> Am I looking at the wrong place?
>
Re: Inconsistenty between Pheonix ROM and BIRT 2.5 ? [message #468316 is a reply to message #468272] Wed, 05 August 2009 01:48 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

It would be good to get a bug logged to update the ROM. Can you log it?

Jason

John Ward wrote:
> Use a dynamic text element, then you can implement your script logic in
> the expression like:
>
> if (a == "abc")
> {
> "abc";
> }
> else
> {
> "def";
> }
>
> That ROM documentation hasn't been updated in some time.
>
> John
>
> Maxim Veksler wrote:
>> Hello,
>>
>> New to BIRT. Using BIRT 2.5 as embedded library in a servlet.
>>
>> I've tried to defined some script based logic on a Text field, I
>> wanted to replace the text that is being displayed to the user.
>>
>> Looking at the ROM,
>> http://www.eclipse.org/birt/phoenix/ref/rom/elements/Text.ht ml#Property-content
>> it seems that I need to define [[this.content = "ABC"]]
>>
>> Trying this did not work, but setting [[this.text = "ABC"]] did
>>
>> I don't see "Text.text" specified any where in the specifications.
>>
>> Am I looking at the wrong place?
>>
Previous Topic:new DataSetProcessor for Venn-Diagram ?
Next Topic:AssertionError in ImageContent.getImageURI() on running RunAndRenderTask
Goto Forum:
  


Current Time: Fri Apr 26 20:53:13 GMT 2024

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

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

Back to the top