Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: click action on table component?

  1. #1
    Join Date
    Aug 2013
    Posts
    6

    Exclamation click action on table component?

    I find this might work

    function(a){

    Dashboards.fireChange('Parameter_N',a.series); #Parameter_N is my parameter I can use for data source, right?
    }

    while my task is like this:

    this is the table

    a b

    num 3
    rate 5%

    and below is a line chart trying to use the parameter passed from table cell I click

    while I click on column a's [num], I want to my sql turns out as follows:

    select
    date,
    [num]
    from table a

    while I click on
    column a's [rate], I want to my sql turns out as follows:

    select
    date,
    [rate]
    from table a

    how can I make it? thank you !




  2. #2
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    you need to use the concept of output indexes in cda - there you can define an output index that outputs columns date and num and another output index that outputs date and rate. When the user clicks a column you have to set the outputIndex property in the dataSource object of the chart.
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

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.