Render a static file from Pentaho User Console

Problem Statement:

In reporting context, many times we come across a need where we generate report once, but render dynamically based on user request. One the example is sales reports for past months. They will be generated once, but user would like to see report based on the need.  We simply call this functionality as, ‘Render a static file from Pentaho User Console’

Scope of this Article:

This article describes you the steps to Render a static file in Pentaho User Console and it also covers steps to open specific files based on logged in user.


  • Pentaho Design studio 3.7.0 or above

Use Case:

We have taken example of calling a static ‘Transaction Summary’ report from xaction.

Detail and Code changes:

            1. Create a new folder MR(Monthly Reports) under BI server/tomcat/webapps/
            2. Move Static file to this folder (Transaction_Summary.xls)             /MR/ Transaction_Summary.xls
            3. Now create a simple xaction to call a static file. Create a input string named url ,pass the path of file as the default valueAs shown in screen shots.  Do not add  any Source of Input
            4. File_initialization

            5. As we are going to call a static file, we need not add any process actions.
            6. Add url as output , Destination as response and Name as redirect.
            7. Response

            8. Save action and now we are ready to open a static file from Pentaho User Console.
            9. Refresh solution directory and Click on Displayfile under Test directory
            10. outputfile

            11. Now let us make a change to render a different file based on logged in user. Open Xaction again.
            12. Add userid as string and assign 1 as default  value, Origin as  request in source of input
            13. orgin

            14. NowAs we need to process our xaction to get static report based on passing userid, we need to add filter under process action step,Add users under Prompt for tab and select prompt style as Text Box
            15. orgin

            16. Add java script step under Process Action; Add userid under ScriptInputs  , Add val in Script outputs , type as  String  This step  Will pass selected userid into URL , Refer the java script In  Screenshot .
            17. orgin

            18. Add val in Process outputs step and output destination as shown below
            19. DestOut

            20. Refresh solution Repository and execute xaction By default it will display ‘1’ , as we have assigned  It in step 1.
            21. id

            22. I am passing a userid as 437 and press OK . Finally we got File, based on Passed userid.



In this article you saw steps to do to  Render static file from PUC’. Hope you enjoyed reading this article.

Walking Tree promotes Pentaho and we support the corporates as well as the developers to ensure that the business is able to take complete advantage of Pentaho’s wonderful capability. In case you are looking for a professional assistance then do visit our website to get in touch with us.


BI developer

Tagged with: , , ,
Posted in Data Warehouse & BI, Pentaho

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

We Have Moved Our Blog!

We have moved our blog to our company site. Check out for all latest blogs.

Sencha Select Partner Sencha Training Partner
Xamarin Authorized Partner
Recent Publication
%d bloggers like this: