Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How to change DataSource Property of Table Component Based on Click

  1. #1

    Default How to change DataSource Property of Table Component Based on Click

    Hi ,

    I need to change dynamically the Data source property of Table component depends on div click.I am 3 div like :div1,div2,div3.Based upon the click div i want to change the data source of table.

    Is their any way how we can do this.i have tried through toggle but not able to achieved.

  2. #2
    Join Date
    Oct 2015
    Posts
    8

    Default

    hi you can follow this thread - http://forums.pentaho.com/showthread...rameter-change

    you can use this in post execution

    $('#div1id').on('click',function f(){
    this.dashboard.getComponent('render_"table_component_name" ').chartDefinition.dataAccessId='datasource_name';
    this.dashboard.getComponent('render_"table_component_name" ').update();
    });
    Last edited by Preethi S; 12-30-2016 at 07:22 AM.

  3. #3
    Join Date
    Jan 2014
    Posts
    19

    Default

    In Pre Execution of table component.
    PHP Code:
    function f(){    
       
    this.chartDefinition.dataAccessId Dashboards.getParameterValue("queryParam");       

    The parameter value is simply a string containing the name property of the query.

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.