Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Dynamic values for label objects

  1. #1
    Join Date
    Apr 2010
    Posts
    149

    Default Dynamic values for label objects

    Hi all,
    In my report I need to set the values of label objects, in "Details Header" section, with some values read from a query.
    I mean, this is the query output:
    key...............key_value
    1 .................Department_A
    2 .................Department_B
    3 .................Department_C
    4 .................Department_D

    and so the 4 labels (in the details header) should have this values:

    Department_A.........Department_B.........Department_C.........Department_D

    and then, with another query, I get the corresponding values for Details section.....

    Do you have some tips to suggest?
    Thank you so much!

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

    Default

    Yes, one tip: Dont use labels, use ordinary text-fields. After all, you want to print the contents of a field from your datasource, so a label (=static text) is not going to be a sane choice. A text field is.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Apr 2010
    Posts
    149

    Default

    sure, I pick your tip...
    If I understand well, I put a text-field on header section and set field attribute to mytable.key_value.
    Name:  keyval.JPG
Views: 35
Size:  16.7 KB

    But, how may it become a horizontal header (Department_A.......Department_B.......Department_C.......Department_D)???
    Last edited by dadapenta; 11-20-2012 at 10:58 AM.

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.