Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: Problem catching a click on PieChart in 4.8

  1. #1
    Join Date
    Jul 2013
    Posts
    4

    Unhappy Problem catching a click on PieChart in 4.8

    Hi everybody !

    Here is my problem:

    I have a pentaho CDE Dashboard made on Pentaho 4.5 containing a Piechart.
    When clicking on the chart, a parameter is changed using the following code in the postChange of the Piechart :

    Code:
    function(s, c, v) {
        Dashboards.log("Click on " + s + ", " + c); //log in firebug
        Dashboards.fireChange('param_zone', c); // changing parameter
    }
    It works well.

    I made an other Dashboard using pentaho 4.8 containing an other PieChart and i wanted to implement the same thing but it fails,
    the parameter is not changed, Firebug says :

    Code:
    CDF: Click on null.null, undefined
    It seems that this code is no more supported in 4.8, is ther an other way to do it using PostChange

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

    Default

    Postchange?

    don't you mean clickAction?
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3
    Join Date
    Jul 2013
    Posts
    4

    Default

    Quote Originally Posted by pmalves View Post
    Postchange?

    don't you mean clickAction?
    Yes sorry clickAction...

  4. #4

    Default

    Hi Magic,

    The problem actually is parameter is not passing at all which is causing the problem.

    Thanks,
    Santosh

  5. #5
    Join Date
    Jul 2013
    Posts
    4

    Default

    Thanks for reply,

    You say the parameter is not passing, but what parameter ? from where to where ?
    I have an existing "param_zone" and it is working perfectly in my pentaho 4.5 dashboard ...
    With the exact same layout it isn't in 4.8 ...

    The pieChart show "zones" in % and on click on a part of the pieChart it should do the trick and the value (the zone name) should be catched by the function in 'c'

  6. #6
    Join Date
    Jul 2013
    Posts
    4

    Default

    Up!

Tags for this Thread

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.