How to use "new ResourcesSearch"

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
736
Joined: Oct 28 2014 - 11:52am
Last seen: 6 years 10 months ago

1 Answer:

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
169689
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago

Alright that's good to know. Thanks!

srang - 8 years 4 months ago
Feedback
randomness