anyone here knowing how to create search on search...
# suitescript
j
anyone here knowing how to create search on search object through code - i want to search all saved searches (not results) and identify and process them. through UI we are able to search on saved searches - i just need the api equivalent of that
p
saved search searches aren’t supported in suitescript (at least that’s what the search exporter browser plugin states)
b
id say the extension is mildy wrong
SAVED_SEARCH is an option for search.Type
its slightly unusual in that you can't load a
saved search
search without specifying the type in search.load. which is probably why the extension would fail you here.
j
ok let me try and confirm right away if its working
nope does not work on list type form addfield, i want to give users option to select search and then use it to generate html based on data
b
are you trying to create a search on saved searches
or are you trying to set the source of a field to saved searches?
j
i am trying to add list dropdown on a form which should display saved searches
b
make a search on saved searches, run it, and use its results to add select options to your field
j
thanks battk - i think thats the only way
b
if you have unusual requirements, you can set the source to '-119' to have the select options be public searches