Jump to content
JasperReports Library 7.0 is now available ×
  • How to check if resource exists in TIBCO JasperReports® Server repository from a report


    Friendly User
    • Features: Repository Product: JasperReports® Server

    Problem:

    In the report for whatever reason, you need to check whether the resource exists in the TIBCO JasperReports® Server repository or not.


    Solution:

    There is an undocumented method to do that. It returns a boolean value:

    com.jaspersoft.jasperserver.api.engine.jasperreports.util.RepositoryUtil.getThreadRepositoryContext().getRepository().resourceExists(null, "/path/to/resource")


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...