Jump to content
Changes to the Jaspersoft community edition download ×
  • How to pass parameter to report generated from ad hoc view


    dszeto
    • Features: Ad Hoc, Input Controls, JasperReports Server, Parameters Version: v6.0 Product: JasperReports® Server

    Issue Description

    After creating Ad Hoc views with filters and saving them/creating reports, I'd like to pass parameters to the reports using Visualize.js. But I'm not sure how the parameter names map to the filters that were defined in the ad hoc view. How is this done?


    Resolution

    Filter names map to parameter names in the Ad Hoc report but, because the underlying architecture of an Ad Hoc report is different than that of a report built in e.g. Jaspersoft Studio, the parameter is not found in the adHoc report unit's JRXML. Once the Ad Hoc report is created, you need to do the following to locate the parameter: - export the Ad Hoc report unit from JasperReports Server - do a search for topicJRXML.data - within the .data file you should see the following:

    <parameter adhoc="" is="" myparameter="" name="myParameter" p="" parameter="" pass=""
               report.="" should="" the="" to="" use="" values="" where="" you=""> </parameter>
    

    Ref. Case 00058820


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...