olivier.thomas.carto Posted July 22, 2014 Posted July 22, 2014 Hi,I would like to know if someone could send me a complete example of use of the ResourcesSearch instruction with the 'new' declaration.in the Server programming Guide there is an example but I can't reproduce this sample. I still have message that ResourcesSearch is not recognize. And from my point of view there is one more parenthesis.new ResourcesSearch({server:"http://localhost:8080/jasperserver-pro",folderUri: "/public",recursive: false})).run(function(resourceLookups){// results here});[/code] Regards,Olivier.
jason.whitehorn Posted August 20, 2014 Posted August 20, 2014 I am also running into this problem.In section 3.3 of the JasperReports Server Programming guide they introduce the ResourcesSearch object, but that doesn't seem to be defined as part of the standard library we imported from visualize.js.... I'm assuming there is another JS file we should import, but I am having problems finding documentation on this.
ghudson_1 Posted August 21, 2014 Posted August 21, 2014 A working example as of the release is within the first two minutes of video number 4 here - http://community.jaspersoft.com/wiki/visualizejs-tutorials Does that help?
jason.whitehorn Posted August 21, 2014 Posted August 21, 2014 Ok, thank you! That helps a lot... that video shows a different way of doing it from the Server Programming guide. I guess the guide is out of date... either way, using the way mentioned in the video now. Thanks!
Recommended Posts
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