Jump to content
We've recently updated our Privacy Statement, available here ×
  • Is it possible to determine where a Jasper report is being ran?


    Sarthak Chaudhary
    • Features: JasperReports Server Version: v7 Product: JasperReports® Server

    Question:

    Is it possible to find which user has run a report from either TIBCO JasperReports® Server or from their embedded application (using Viz.js)

    Is it possible to determine if a report is run directly in JasperReports Server and when a report is run using embedded reports in a custom application? 


    Solution:

    In order to determine where the end-user is accessing the report from a non-prompt (hidden) parameter can be created. This parameter (P_URL) is used in the hyperlink in an IF statement were based on true or false the condition is passed onto the jasper server. This is relatively straightforward for TIBCO Jaspersoft® Studio however for the Vizualize.js, if the end-user must be redirected to the embedded application (visulaize.js) then a similar call must be passed through Viz.js defining the parameter's value to be false which would then correspondingly select the 2nd value in the IF statement. 


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...