View Full Version : Dashboard- session variables

06-26-2006, 02:49 PM
I have deployed the application to JBoss Portal Server 2.2 using the Pentaho ant scripts. Pentaho components work in the samples.

For my own components, I run some system actions when a user logs on to the JBoss Portal. Their login id will be loaded in to a session variable to use as a filter against reports, cubes etc.

When I use this session variable to run a JasperReport, I get the expected output. However, when I try to use it with a Custom Dashboard the session value is not picked up.

portlet.xml node:
<subtitle>Simple Sample</subtitle>


Post edited by: billl, at: 06/26/2006 18:50

06-26-2006, 05:12 PM
Uhmm I see the problem.

You were not using an action input.

<?xml version="1.0" encoding="UTF-8"?>
<title>Transactions Piechart</title>
<description>Transactions Piechart</description>

<test_merchant_number type="string">



<!-- DIFFERENT -->
<test_merchant_number type="string">
<rule-result type="list"/>
<query> <![CDATA[
EXEC rmdsp_get_transactions_dashboard '{test_merchant_number}'
]]> </query>


Try that out.
Not only do you have to take your input into the xaction but also pass it to your action components how less will it know to you use it.

Hope that helps,