Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How can I set condition on clickability of a line chart??

  1. #1
    Join Date
    Aug 2012
    Posts
    13

    Default How can I set condition on clickability of a line chart??

    Can I also set condition on the clickability of line chart..
    I am making a dashboard having different levels. When I click on a line chart of one level, it trigger the next level. I want to set off the clickability of the line chart of the next level based on a condition of the current level. Or if we could make a condition that if the parameter that is to be passed by click action contains the same value as that of the current level then it should not trigger the next level.

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

    Default

    It's javascript, you can define wherever logic you want in the clickAction function
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3
    Join Date
    Aug 2012
    Posts
    25

    Default

    You can change it using javascript. If you use firebug or any other web tool you can see the script code generated for pentaho. Each componenent it´s a script variable called render_<name of your component>. If you want to change the clickable property to true or false you can do it change the property:

    render_<name of your component>.chartDefinition.clickable = flase

    You can change it in the clickAction function.

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.