Anyone ever try to store/retrieve a search result(...
# suitescript
d
Anyone ever try to store/retrieve a search result(s) using the the cache module? I've had wonderful results when storing string or simply JSON objects, but I'd like to store a search.Result ... but I'll lose the .getValue function as a result of stringifying that object. Any suggestions?
s
why not store the
nsSearchResult2obj
output?
d
what is that?
s
that's the NFT function that simply maps a search result to a normal JS object, but it's just one implementation - I see many people doing it here.
d
Interesting. Is there a obj2nsSearchResult for the other way? @stalbert?
s
nay, - I don't think netsuite gives us any way to construct a real search result from scratch?