Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: Custom Template Parameters

  1. #1
    Join Date
    Apr 2006

    Default Custom Template Parameters

    I am having problems getting a custom template param page to load. Using the custom param example 2 as a guideline.

    If I append the params directly on to the url the report works. The secure filter component doesn not get fired properly.

    I am sure there is a problem with the Secure Filter action definition in my xaction file. Not sure exactly what it is.

    I don't need t do filtering- just a custom page to get some params which will then get passed to a SQL Lookup and JFree report.

    Here is my action definition:
    <P_COMPANYNAME type="string"/>
    <P_FROMDATE type="string"/>
    <P_TODATE type="string"/>
    <P_COMPANYNAME style="select" filter="none" prompt-if-one-value="true"/>
    <P_FROMDATE style="select" filter="none" prompt-if-one-value="true"/>
    <P_TODATE style="select" filter="none" prompt-if-one-value="true"/>

    The full xaction file is also attached.

    Deploying to Tomact 5.5 with Pentaho 1.5.2 jars from PCI.

    Any ideas would be appreciated.
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 1999


    Did you create the action sequence with the latest version of the Action Sequence editor?

  3. #3
    rhasija Guest

    Default Could you attach your facts.xml file?

    Hi blysaght,

    Could you attach your facts.xml, and facts_template.html file too?

    Meanwhile, I am looking into the .xaction file. Seems like you have defined a Secure Filter Component manually. As per my understanding, all you need to do is define the inputs and the secure filter component will automatically render the Inputs to the web page.

    See if removing the secure filter component in the Process Action solves it for you?


    Ravi H.
    Last edited by rhasija; 10-22-2007 at 01:58 PM.

  4. #4
    Join Date
    Apr 2006

    Default customer parameter template

    I will try to upgrade to the latest version of the action sequence plugin. Attempted to manually edit the xaction file to see if this would circumvent any problems with the plugin.

    If I just create a url and append the parameters that I need the report works.

    For my parameters page, I want to use my own customised page (look and feel etc). In order to show my own custom param page it seems that I have to use a secure filter component with an <xsl/> node. Even if I wish to use a html custom param page this seems necessary.

    In the attached examples the xaction runs but throws an error because of missing parameters. However, it does not attempt to load my param page.
    Attached Files Attached Files

  5. #5
    rhasija Guest

    Red face

    Hi blysaght,

    Name:  custom_template_1.jpg
Views: 105
Size:  5.7 KB

    Name:  custom_template_2.jpg
Views: 106
Size:  34.2 KB

    I tried using your attached files and it seems to be working. In fact I changed one of the inputs in facts_template.html to "radio" and it seems to be picking it up.

    I have pasted the two screenshots.

    Could you be more specific in regards the errors you are getting? Can you cut n paste the error log or messages?


    Ravi H.

  6. #6
    Join Date
    Apr 2006

    Default Custom Template Parameters

    I resolved this issue by including at least 1 param that used a filter (source of choices). As it is for a report I was able to use report output type with list of types ie html, pdf etc.

    However, without including this the custom parameter page never gets invoked. The report is run with default values for params.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.