Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Pentaho 7.1/ Dashboard CDE.

  1. #1
    Join Date
    Oct 2017
    Posts
    1

    Question Pentaho 7.1/ Dashboard CDE.

    Hello,

    Am very new to pentaho and also non-technical / Business Analyst.
    Tried few samples of simple dashboards, with drill down and interactive features as below:

    A) Drill down from pie chart (shows yearly summary) to Sunburst chart by clicking on year slice from pie chart - by passing 2 parameters thru URL. (viz. Year and Product as 'ALL PRODUCTS' )

    B) Sunburst chart displays Year/Product/Quarter/Month summary of reported issues of ALL products for the year selected from pie chart. e.g:When I select 2004 and enter sunburst chart-> inner ring will indicate ALL PRODUCTS,next ring will indicate 4 quarters of 2004, outermost ring will list respective months of each of quarter depending on my data. There is a dropdown Select on top of the page which enable product filter.

    C)Able to correctly refresh SUNBURST CHART based on product filter.

    D)When I click on sunbust chart ->depending on where i clicked,am able to get the respective value (Product or Quarter or Month) - >using scene.getCategory();

    Issue:

    1)Am unable to set/get the value at step (D) to new custom parameter in order to use it on other charts within same dashboard.. Have noted that none of the Dashboard.Methods() are working under 'Click Action' of sunburst chart hence used below as per pentaho documentation:

    var Cat = scene.getCategory();
    alert("Category:"+Cat); //alert 1
    this.dashboard.setParameter('Param_QtrMonth', Cat) / this.dashboard.setParameterValue('Param_QtrMonth'); (both options are tried)
    alert("Variable is set"); //alert 2

    Alert (1) is displayed with category value , however execution is suspended on below line (setparameter) and not getting alert(2).
    Have tried to invoke fireChange () method also, but no luck.!!!!..(Pre/Post execution events are also tried with the above code).

    Have below observation:
    Am unable to find the "support RequireJSSupport" checkbox while saving the dashboard as per below link:

    https://help.pentaho.com/Documentati...sing_RequireJS.

    Any special set up reqd for enabling above?

    Is it that situation will be better if I try some prior versions of CDE..?....IF SO, WHICH ONE?

    Pls help me with this....also provide me links of online tutorials which would be useful for a non-technical beginner.

    Am completely STUCK..!!..:-(....

    Thanks in advance
    Pooppy

  2. #2
    Join Date
    Jan 2018
    Posts
    5

    Default

    Hello Pooppy.

    I faced with the same issue, but I have managed to turn off "
    RequireJSSupport"

    You should go to "Settings menu" like in the screen and uncheck this option.
    Name:  capture20180125175926261.jpg
Views: 532
Size:  23.7 KB

    and this works fine over Dashboards.fireChange('Param_QtrMonth', scene.vars.category.label);.

    Anyway, does anybody know how to fix this issue with enabled RequireJSSupport?

    Why
    this.dashboard.fireChange('Param_QtrMonth', scene.vars.category.label);
    does non work?
    Last edited by VitaliyUA; 01-25-2018 at 12:06 PM.

  3. #3
    Join Date
    Jan 2018
    Posts
    5

    Default

    Pooppy,

    I'have just found the resolution which works with RequireJS enabled (https://forums.pentaho.com/showthrea...n-click-action).

    Use dashboard.fireChange instead of this.dashboard.fireChange.
    dashboard.fireChange("my_parameter",scene.getCategory());

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.