Murugaas
Contributor
Contributor

when find and findAll methods will be invoked? Search action not returning results.

In the input parameter box, search string (file name) is provided, however it is not taken into account. By default, find() is invoked from factory class and all the file names are listed in the drop down from the cluster.

From the script, action method is specified to load only the specified file names in the drop down list but it is not happening. Smiley Sad How to achieve this? When first character is typed in the input text box, find() is invoked by default; not sure how it is getting invoked.

Thanks,

Tags (1)
0 Kudos
4 Replies
iiliev
VMware Employee
VMware Employee

Hi,

Could you provide a bit more info/context? What are these find(), findAll(), file names, dropdowns, clusters, actions, input text boxes, etc.?

0 Kudos
Murugaas
Contributor
Contributor

Hi,

Developing a plugin for VRO 7.4; in VRO client, creating a workflow to restore the backed up files. To restore the file, keyword of the filename is provided as an input to the workflow. This keyword will be used as a search query parameter and the result  (list of filenames) has to be listed in the drop down. This is the expected behaviour. However, all the filenames are getting listed in the drop down as the plugin factory class find() is invoked. Not sure why the find() is getting called. Is it a default bahaviour that find(), findAll() be invoked to load the corresponding object types?

Thanks,

0 Kudos
iiliev
VMware Employee
VMware Employee

Still don't understand what is the relation between the keyword input and list of filenames with the plug-in objects? How do you get all the filenames? Is each filename wrapped as an instance of some object type in your plug-in, and if so, where do you return the list of all such objects except in findAll (find returns a single object)?

0 Kudos
Murugaas
Contributor
Contributor

Yes, each filename is wrapped as an instance of some object type in the plug-in; From script file, we are invoking a Java API which in turn uses REST call to fetch all the filenames from storage box and returns it so as to load in the drop down (in VRO client).

0 Kudos