How to use "new ResourcesSearch"

0

Hi I'm trying to do multiple searches using visualize.js and I followed the guide which said to do

new ResourcesSearch({
    server:"http://localhost:8080/jasperserver-pro",
    folderUri: "/public",
    recursive: false
    })).run(function(resourceLookups){
        // results here
});

However I get the error "ResourcesSearch is not defined". I looked at this link which referenced the tutorial video. However in the tutorial they use v.resourcesSearch. I can't seem to get "new ResourcesSearch" to work and I'm not sure what I'm doing wrong

srang's picture
206
Joined: Oct 28 2014 - 11:52am
Last seen: 3 years 6 months ago

1 Answer:

0

Just use v.resourcesSearch as in following page. It worked for me. Visualize.js is still being developed and it seems the guide is out of date.

https://community.jaspersoft.com/wiki/visualizejs-api-notes-and-samples

hozawa's picture
53202
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago

Alright that's good to know. Thanks!

srang - 5 years 3 weeks ago
Feedback
randomness