Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Using Button component to pass values to query and generate a chart

  1. #1

    Default Using Button component to pass values to query and generate a chart

    Hi Everyone,

    I am trying to use a text input component and a button component where by clicking submit(button component) the value from the text input must be passed to the query in the data source and a chart must be generated depending on the rows returned by the query. what expression should i write for the following requirement to work. Please do help me with this.

    Santosh Bhagavatula.

  2. #2
    Join Date
    Feb 2014


    Did you find the solution to your problem? I am looking for something similar.

  3. #3
    Join Date
    Jan 2014


    In recent CDE+CDF versions, the button component support calling a datasource when clicked. Just open "Advanced Properties" in CDE.

    If you want a chart to be generated upon a click, then you should:
    1. associate a parameter with the text input component (textParam)
    2. create a parameter "queryParam"
    3. on the "expression" of the button, write code to process textParam, and output the result to queryParam by calling 'Dashboards.fireChange("queryParam", ...)'

    4. configure the chart component to listen to "queryParam". The chart datasource should also depend on queryParam.

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.