How to use ResourcesSearch

0

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
});

Regards,

Olivier.

olivier.thomas.carto's picture
Joined: Jul 4 2014 - 1:58am
Last seen: 4 years 10 months ago

2 Answers:

0

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.

jason.whitehorn's picture
Joined: Aug 20 2014 - 9:53am
Last seen: 4 years 7 months ago
1

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?

ghudson_1's picture
19063
Joined: Oct 30 2012 - 12:51pm
Last seen: 16 hours 13 min ago

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!

jason.whitehorn - 4 years 11 months ago
Feedback