Hitachi Vantara Pentaho Community Forums
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Open popup click action of a chart

  1. #11
    Join Date
    Feb 2013
    Posts
    530

    Default

    Quote Originally Posted by jswinnerton View Post
    This kind of setup definitely works for me (I am using pentaho v4) and sounds like you are doing everything right - sorry I can't suggest anything more except double checking everything and debugging with firebug

    Cross verified.. worked .. Thank you for the input.

  2. #12
    Join Date
    Feb 2013
    Posts
    530

    Default

    Pop up is not coming in Chrome browser (general popup is enabled in Chrome) but coming in firefox ?

    Using below code..

    function f(e){
    var color = this.pvMark.fillStyle();
    Dashboards.fireChange('Param1_state', e.vars.category.value);
    Dashboards.fireChange('param3_color',color.color);
    //alert("you have clicked on"+" "+Param1_state);
    render_PopUpComp2.popup($(this.event.target));
    }

    1) In Chrome

    Popup for button component with out parameters is working fine..( do not need to be parametrized in my case)
    Popup for pie chart using above code is not working in Chrome browser..

    2) Mozilla

    Popup for button component is working with out parameter is working fine( do not need to be parametrized in my case)
    Popup for pie chart using above code is also NOT working ...
    If I enable the alert function in the above code pop for pie chart is working ...

    1) What could be probable reason for this kind of behavior? How to over come this ?
    2) Can we pass multiple parameters in Single fire change function ?


    Thank you in Advance

    Sadakar

  3. #13
    Join Date
    Jun 2015
    Posts
    24

    Default

    I've also got the same problem... popup is not rendered properly
    when alert is disabled popup doesn't work and when alert is enabled, it just renders randomly!!!
    how the issue can be solved?!?!
    thanks in advance for your help

    Quote Originally Posted by sadakar View Post
    Pop up is not coming in Chrome browser (general popup is enabled in Chrome) but coming in firefox ?

    Using below code..

    function f(e){
    var color = this.pvMark.fillStyle();
    Dashboards.fireChange('Param1_state', e.vars.category.value);
    Dashboards.fireChange('param3_color',color.color);
    //alert("you have clicked on"+" "+Param1_state);
    render_PopUpComp2.popup($(this.event.target));
    }

    1) In Chrome

    Popup for button component with out parameters is working fine..( do not need to be parametrized in my case)
    Popup for pie chart using above code is not working in Chrome browser..

    2) Mozilla

    Popup for button component is working with out parameter is working fine( do not need to be parametrized in my case)
    Popup for pie chart using above code is also NOT working ...
    If I enable the alert function in the above code pop for pie chart is working ...

    1) What could be probable reason for this kind of behavior? How to over come this ?
    2) Can we pass multiple parameters in Single fire change function ?


    Thank you in Advance

    Sadakar

  4. #14
    Join Date
    Mar 2012
    Posts
    645

    Default

    Hi,

    please, Sahar or Sadakar, can you create an issue in Jira for this? jira.pentaho.com/browse/CDF

  5. #15

    Default

    Try replace $(this.event.target) with $(e.target)
    Works fine with me in chrome, firefox and IE

  6. #16
    Join Date
    Sep 2017
    Posts
    2

    Default

    Hello.
    I would like to reopen this topic again.

    I had two tables on my dashboard. When you click on row of first one second one update all its values. Then I decided to put second table inside of the popup component.

    This is my code on "Click action" of the first table:

    function d(s){
    dashboard.fireChange('param_stageName',s.series);
    render_tablePopup.popup($(s.target));
    }


    And when I click on row of table I can see popup with second table inside but just for a moment, after that it desapear. What is the problem?

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 - 2017 Pentaho Corporation. All Rights Reserved.