Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Custom Java API to run Pentaho reports

  1. #1
    Join Date
    Jul 2012
    Posts
    4

    Default Custom Java API to run Pentaho reports

    We supposed to generate pentaho reports with out BA server. We designed report with JNDI connection (Oracle). In Java API we should able to pass database credentials at run time to report. Please suggest.

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    You can pass in credentials from parameters.

    First, define the parameter on the report, as hidden string parameter (as users usually shall not see these parameters).
    Then edit your JDBC datasource and hit the "Edit Security" button there. Then enter the name of your parameters in the "user-field" and "password-field" text-boxes.

    From that point on forward, you can parametrize your report normally via "MasterReport.getParameterValues().put("user", "joe")" and so on.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Jul 2012
    Posts
    4

    Default

    Thanks for reply. My requirement is how to bind JNDI connection credentials on run time thru JAVA API. Please guide us.

Tags for this Thread

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.