Pentaho

 View Only
  • 1.  PENTAHO CDE 8.3

    Posted 07-27-2023 05:58
      |   view attached
    Hi all,
    is it possible in the ButtonComponent(btAck) to write example text:"Hello" for TextComponent(txtTest)? The text must be displayed when the button is clicked. Furthermore, it is always possible from the ButtonComponent(btAck) to invoke the execution of the TableComponent(tab_ViewedErrorsFromCSIS)? Please help me. Thanks in advance.


    ------------------------------
    Marco Voto
    Systems Engineer
    GPI
    ------------------------------


  • 2.  RE: PENTAHO CDE 8.3

    Posted 07-28-2023 09:35

    Add a parameter named textvalue or whatever name you wish.

    Then in the text component expression property add this function

    function() {
        return this.dashboard.getParameterValue('textvalue');
    }

    Add the textvalue parameter as a listener to the text component.

    In the button component expression property add this function.

    function() {
       this.dashboard.fireChange('textvalue', 'Hello');
    }

    In the table component add the textvalue parameter as a listener also. This should cause the table component to execute when the textvalue parameter changes.



    ------------------------------
    Marvin Horst
    Business Development Manager
    Customer Community General Account
    ------------------------------