Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: can a table component clickable?

  1. #1
    Join Date
    Aug 2009
    Posts
    122

    Default can a table component clickable?

    hi guys,
    i notice that jFreeChartComponent has a "parameterName" and "urlTemplate" which can make clickable. in the pentaho example, i can click a bar in jFreeChartComponent and a window pop out tell me what i just clicked.

    Code:
            parameterName: "PRODUCTLINE",
    	caption:{},
    	urlTemplate: "javascript:alert(\"You clicked \" + encode_prepare(\"{PRODUCTLINE}\"))",
    i wonder that is there the same function on tablecomponent. If there is , i think i can link two tables using "parameterName" and "listeners".

  2. #2
    Join Date
    Jul 2007
    Posts
    2,498

    Default

    It's possible to add that, but you need to use jquery code in the postexecution function
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3
    Join Date
    Aug 2009
    Posts
    122

    Default

    Quote Originally Posted by pmalves View Post
    It's possible to add that, but you need to use jquery code in the postexecution function
    Thanks reply!

    I'm confuse that there isn't "parameterName" attribute in table component. why do you say it is possible?
    There is another question. A table contains 3 columns, how can i differentiate which column did customer click?

    And i think postexecution function should be used with "parameterName" together, which make something clickable.

  4. #4

    Default

    I also need the TableComponent clickable. Did you find the answer?

    Can you provide an example for the jquery within postexecution?

  5. #5
    Join Date
    Aug 2009
    Posts
    122

    Default

    To Jepse, i haven't find the answer.
    To pmalves, can you show me the details or give me more hint?

    Thanks.

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.