Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Hiding the WebURL

  1. #1
    Join Date
    Mar 2007
    Posts
    3

    Default Hiding the WebURL

    Dear All,

    Is there a way to hide the URL parameters values in Pentaho?
    Example for what i mean

    http://localhost:8088/pentaho/ViewAc...path=reporting

    Is there a way to hide these values so that when an Xaction file is executed the URL will show

    http://localhost:8088/pentaho/ViewAction?

    Regards,

    yjeen

  2. #2

    Default

    Try to send data to ViewAction as a POST HTTP request. I think it should works, but you'll need an HTML form (or maybe some javascript).
    Fabien

  3. #3

    Post

    Hello,

    I tried calling my report using a POST method, with parameters having

    <FORM action="http://ip:8080/pentaho/content/reporting/reportviewer/report.html" method="POST">
    <P>
    <INPUT type="text" id="solution" value="Test"><BR>
    <INPUT type="text" id="path" value="Reports"><BR>
    <INPUT type="text" id="name" value="ReportName.prpt"><BR>

    <INPUT type="submit" value="Send">
    </P>
    </FORM>

    but after clicking on submit the report is not fetched, but I get a null pointer exception from Pentaho Server

    however the report is called when I reference the complete link as

    http://iport/pentaho/content/reporting/reportviewer/report.html?&solution=test&path=Reports&name=ReportName

    in my browser

    Has anybody been able to call reports using POST method, so that URL parameters are not visible to others. I need to get this implemented soon

    Please bear with me if my question is to too lame

    Thanks for any help

    Regards
    Ashley

  4. #4
    Join Date
    Mar 2009
    Posts
    112

    Default

    Try using ajax to make the request.
    Using jQuery your code should be something like:
    Code:
    jQuery.ajax({   
    	type: "GET",
    	url: "/pentaho/ViewAction", 
    	data: "REGION=Central&solution=samples&action=jasper-reports-test-2.xaction&path=reporting" ,
    	success: function(msg){
    		// here you have to get the report content and place it on a div (for example)
    	}
    });
    I that way users will never know the full URL, unless they see the source, play with FireBug or a similar plugin.

    Best regards,
    José Ignacio

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.