The button is actually generated by a saved search...
# suitescript
d
The button is actually generated by a saved search. I'd like to avoid putting a bunch of code into the result set. Right now I'm setting a global var using the require like you suggested to reach the functions. However, I don't think that's best practice.