Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: getting the parameters for a report, using a restful call?

  1. #1
    Join Date
    Jul 2014
    Posts
    3

    Default getting the parameters for a report, using a restful call?

    Hi,
    I'm looking for a restful api call for getting all the parameters of a report, and their types.

    I found this document http://infocenter.pentaho.com/help/t...g_biserver.pdf, but I do not see an endpoint that will return the parameters . However, I do see that the following calls work:
    http://localhost:8180/pentaho/api/repo/files/:Public:Sample%20Reports:Sample1.prpt/properties
    http://localhost:8180/pentaho/api/repos/:Public:Sample%20Reports:Sample1.prpt/generatedContent

    This document, http://wiki.pentaho.com/display/Repo...+Documentation , speaks of a renderMode paramater. And if set, to XML or PARAMTER. I would expect to get back the parameters for the report. Does this work for version 5.0?
    What would the URL look like?
    http: //localhost:8180/pentaho/content/reporting?renderMode=XML&solution=admin&path=/Public/Sample%20Reports&name=Sample1.prpt
    --> Gives error "No class registered for id reporting"
    I couldn't get it to work. What do you use for solution? Given that http: //localhost:8180/pentaho/api/repos/: Public:Sample%20Reports:Sample1.prpt/generatedContent url works, what should the renderMode url look like?

    I have also tried:
    http: //localhost:8180/pentaho/api/repos/:Public:Sample%20Reports:Sample1.prpt/generatedContent?renderMode=XML
    ---> But I get an java.lang.IllegalArgumentException as the response, and nothing in the logs.

    Thank you for your help.
    Last edited by vabusch; 07-14-2014 at 01:31 PM.

  2. #2
    Join Date
    Jul 2014
    Posts
    3

    Default

    Is
    http: //localhost:8180/pentaho/content/reporting?renderMode=PARAMETER&solution=admin&path=/Public/Sample%20Reports&name=Sample1.prpt
    the correct format for getting the parameters and type information of a report in 5.0?

  3. #3
    Join Date
    Jul 2014
    Posts
    3

    Default

    http: //localhost:8180/pentaho/api/repos/:Public:Sample%20Reports:Sample1.prpt/parameter?renderMode=XML

    Found the answer in the sources.

  4. #4

    Default

    Vabusch, would you mind giving some more information on this please? I'm trying to do the same thing.

  5. #5
    Join Date
    Aug 2015
    Posts
    29

    Default

    Quote Originally Posted by vabusch View Post
    Hi,
    I'm looking for a restful api call for getting all the parameters of a report, and their types.

    I found this document http://infocenter.pentaho.com/help/t...g_biserver.pdf, but I do not see an endpoint that will return the parameters . However, I do see that the following calls work:
    http://localhost:8180/pentaho/api/repo/files/:Public:Sample%20Reports:Sample1.prpt/properties
    http://localhost:8180/pentaho/api/repos/:Public:Sample%20Reports:Sample1.prpt/generatedContent

    This document, http://wiki.pentaho.com/display/Repo...+Documentation , speaks of a renderMode paramater. And if set, to XML or PARAMTER. I would expect to get back the parameters for the report. Does this work for version 5.0?
    What would the URL look like?
    http: //localhost:8180/pentaho/content/reporting?renderMode=XML&solution=admin&path=/Public/Sample%20Reports&name=Sample1.prpt
    --> Gives error "No class registered for id reporting"
    I couldn't get it to work. What do you use for solution? Given that http: //localhost:8180/pentaho/api/repos/: Public:Sample%20Reports:Sample1.prpt/generatedContent url works, what should the renderMode url look like?

    I have also tried:
    http: //localhost:8180/pentaho/api/repos/:Public:Sample%20Reports:Sample1.prpt/generatedContent?renderMode=XML
    ---> But I get an java.lang.IllegalArgumentException as the response, and nothing in the logs.

    Thank you for your help.
    Is it possible to keep the report.prpt file in the local drive like E:\somefolder\report.prpt and then call it by the PRPT COMPONENT from bi server?
    I tried alot but in vain

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 - 2017 Pentaho Corporation. All Rights Reserved.