Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Style Expression "Font-bold"

  1. #1
    Join Date
    Apr 2008
    Posts
    5

    Question Style Expression "Font-bold"

    Hey,

    I got a question.
    I was wondering how the syntax could be of the font-bold style expression?!

    So if I use for example the background color expression, I could write like this:
    report: if([Sum]>20;"green";"red")
    But within the font-bold expression I don't know what I can use for the "then" and the "else" statement. I tried true & false, 1 & 0, but nothing did work.

    Can anybody help me

    Greetz

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    The engine either expects the correctly typed values or strings that can be parsed into the target value.

    The "font-bold" key is a boolean key, so either create booleans by using the functions "TRUE()" and "FALSE()" or by returning the strings "true" and "false" (case matters!).
    But as the condition of your IF-Function is a boolean in itself, you can as well use the function "=(Sum]>20)" with the same effect.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Apr 2008
    Posts
    5

    Default

    it worked...
    great, thanks

  4. #4

    Default Thanks a lot..!!

    It worked...

    In expression builder it is showing in caps.. like 'TRUE' and 'FALSE'..
    But we have to use "true" and "false"

    Thanks,
    VJ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.