Code sample
In order to list the available resource and search types you can run something as simple as this:
visualize({ auth: { name: "joeuser", password: "joeuser", organization: "organization_1" } }, function(v) { console.log(v.resourcesSearch.types); console.log(v.resourcesSearch.sortBy); });
Having these lists is helpful when you need to find specific resource types in repository and/or sort resources in a specific way, and you are not sure what are the values to provide for the search query
Below is an example code snippet in JSFiddle.net for discovering available resource types and search types available in JasperReports Server repository, logging it in browser console, and also creating corresponding dropdown lists on the UI:
https://jsfiddle.net/Stas_P/zxdhcu9e/
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 accountSign in
Already have an account? Sign in here.
Sign In Now