Hello, Would it be possible to create a Suitelet ...
# suitescript
m
Hello, Would it be possible to create a Suitelet Popup for selecting 'items' in a sales order or custom transaction? Is there a way to add a button or how would you call the Suitelet? I would like to be able to display a list of items with a small image next to it for the user to select.
d
User event script with a beforeLoad function and form.addButton to add the button to the form. Attach a client script at the same time. In the client script, use window.open to load a suitelet. The suitelet can write back to the sales order lines using window.opener.nlapiSetCurrentLineItemValue
Bear in mind this is very non-standard methodology, so won't be supported by Netsuite.
m
thank you so much. I was hoping to deploy this in the vendor center, which prevents the beforeLoad entry point. Is that a show stopper?
d
Sorry, that's not something I have any experience with.
m
Thanks for your help!