Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Setting Style of data element in scripting
Setting Style of data element in scripting [message #1222051] Thu, 19 December 2013 15:09
Marina Orth is currently offline Marina OrthFriend
Messages: 51
Registered: September 2012
Member
Hello,

i'm trying to set style of a data element in the onCreate Script.


I'm using this:
if (this.getDataBinding("ACTIVE").charAt(0)=="1")
{
this.getStyle().fontWeight = "bold";}

So if "ACTIVE" is 1, the style will be bold. But it's not working. "ACTIVE" contains a decimal value, that could be 0 or 1.

Any help?

I solved problem: it's very easy with setting a highlight on the data element...

[Updated on: Mon, 20 January 2014 08:02]

Report message to a moderator

Previous Topic:Determine Rendered Font Size on Output
Next Topic:BIRT dimensional fidelity, inherited 1pt padding, accumulation of error
Goto Forum:
  


Current Time: Tue Apr 23 07:45:33 GMT 2024

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

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

Back to the top