Pentaho Report - Xaction file with multiple condition parameters

1.3k Views Asked by At

I am using pentaho 2.x report server,

The report is having a radio button element and two drop down elements in a html page which will be passed to my xaction as parameters, for now different sqls will be executed based on the radio button value passed to my xaction.

But now i need to check the value of a drop-down and using both radio button and drop down values sqls will be executed.

following is the condition i am using,

<condition><![CDATA[REPORT=='ACTUAL']]></condition>

REPORT --> radio button value from html

Need to use another value/pass another parameter to the <condition> attribute.

1

There are 1 best solutions below

0
On
  <actions> 
    <condition><![CDATA[REPORT.equalsIgnoreCase("ACTUAL") && TYPE.equalsIgnoreCase("NEW")]]></condition>
    <action-definition> 
    .... whatever action ... 
    </action-definition> 
  </actions>

  <actions> 
    <condition><![CDATA[REPORT.equalsIgnoreCase("ACTUAL") && TYPE.equalsIgnoreCase("OLD")]]></condition>
    <action-definition> 
    .... whatever action ... 
    </action-definition> 
  </actions>