Skip to main content



      Home
Home » Archived » BIRT » Modify style in Javascript
Modify style in Javascript [message #53057] Fri, 01 July 2005 12:03 Go to next message
Eclipse UserFriend
I am trying to modify the style of a data item in a report. I have set
the onCreate method of the Data item to the following, each in a
separate run:

this.color="red";
itemDesign.color="red";
this.setColor("red");
itemDesign.setColor("red");
etc.

There appears to be no effect when the report is previewed. I have
debugged it far enough to see the script being executed, but the
DataItem Java object never appears to be changed by the script.

Does anyone have examples that use the JavaScript methods on report
elements? Is the syntax above correct?

I reported a bug (#102496) that the onRender method of a Data element is
never called. I was able to determine through debugging that onRender is
never called but onCreate is called for a Data item.
Re: Modify style in Javascript [message #53107 is a reply to message #53057] Fri, 01 July 2005 13:33 Go to previous message
Eclipse UserFriend
Currently, changing various properties at runtime is only supported for
data-related features.

Stanley Wang
BIRT Engine

Michael McRoberts wrote:
> I am trying to modify the style of a data item in a report. I have set
> the onCreate method of the Data item to the following, each in a
> separate run:
>
> this.color="red";
> itemDesign.color="red";
> this.setColor("red");
> itemDesign.setColor("red");
> etc.
>
> There appears to be no effect when the report is previewed. I have
> debugged it far enough to see the script being executed, but the
> DataItem Java object never appears to be changed by the script.
>
> Does anyone have examples that use the JavaScript methods on report
> elements? Is the syntax above correct?
>
> I reported a bug (#102496) that the onRender method of a Data element is
> never called. I was able to determine through debugging that onRender is
> never called but onCreate is called for a Data item.
Previous Topic:Examples of creating a new Data Access Service
Next Topic:Bugzilla reports using BIRT
Goto Forum:
  


Current Time: Thu May 01 00:16:06 EDT 2025

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

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

Back to the top