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")
Recommended Comments
There are no comments to display.