Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Setting Style of data element in scripting
Setting Style of data element in scripting [message #1222051] Thu, 19 December 2013 10:09
Marina Orth is currently offline Marina Orth
Messages: 36
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 03: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: Mon Jul 28 10:30:21 EDT 2014

Powered by FUDForum. Page generated in 0.21356 seconds