5. After having designed the report, publish it to the opentaps BI solutions repository :

The opentaps BI solutions repository is located in <OPENTAPS-HOME>\hot-deploy\pentaho-solutions. In the following pictures the TransactionSummary report sample is published in the pentaho-solutions\financials\acctgtrans folder.

Configuration of a database connection

To configure a database connection copy the template file datasource.xaction from, for example, <OPENTAPS-HOME>\hot-deploy\pentaho-solutions\financials\datasource.xaction to your customized solution folder and set the jdbc parameters as shown in the next picture :

Sharing a datasource connection configuration between reports

After designing and publishing the report, open the associated action sequence script (<REPORT_NAME>.xaction) with Pentaho Design Studio and add a Pentaho BI Process action as shown in the next picture :

Configure the XAction File text box so that it points to the datasource.xaction file (which contains the parameter configuration for the database connection). In the Outputs box insert an entry with the name shared_sql_connection and object as type as shown in the next picture :

Select the action that executes the query, set the Database Connection Type to Shared and write <shared_sql_connection> on the Name dropdown as shown next :

Testing the action sequence in the Pentaho Design Studio

To test the action sequence, keep your opentaps server running, select the Test tab on the Pentaho Design Studio, set the Pentaho Server URL text box to http://myserverurl/pentaho/control, click on the Generate URL button and then Run. You should then see your report rendered on the screen.

Security configuration in Opentaps BI

Access permissions to Opentaps BI reports can be configured by associating the user login with an Opentaps security group which has REPORTING_VIEW and REPORTING_<CUSTOMIZED SECURITY_ID> permissions and then configuring an input parameter in the action sequence script (.xaction file) named permissionId with default value _<CUSTOMIZED SECURITY_ID>.

Step by Step security configuration Using Pentaho Design Studio

Click File --> Open File --> Navigate to where you have stored the ".xaction" file you created with Pentaho Report Designer, and click "OPEN". Note if it prompts you to update the file, do not update unless you are sure it will work.

Under the Process Inputs section click the blue plus icon and create a type of "string"

A new section called Process Input will now be created

Under Name enter in "permissionId"

Keep Type as "String"

Under Source Of Input

Click the blue plus icon and add type of "security"

Delete the "request" type of Source Of Input

Under Default Value

Make sure the "Has Default Value" radio button is selected

Inside the Default Value text box enter "_FINANCIALS"

Click File --> Save

Your finished configuration should look similar to the following picture

In the next picture we configure the TransactionSummary.xaction script with a permissionId of _FINANCIALS which maps to a REPORTING_FINANCIALS permission we associated with the user login demofinadmin :

Now only demofinadmin can can execute the TransactioSummary report.

Demo tour Opentaps BI

Login first as demofinadmin password opentaps and navigate the Financials solution to the Transaction Summary Demo Report. Then login as demopurch1 password opentaps and navigate the Planning solution to Open Requirements CrossTab - Postgres.

Have fun!

Error Messages

Could not remove disk store

Though unlikely, you may encounter a situation where a user can run reports, but when they move back up the report tree or to the top level they encounter an error similar to this: