Discussions
context.response.write is not writing back to the sales order
Hi Guys,
I'm trying to implement a suitelet pop from client script on the sales order and select an item, then write it back to the item on sales order lines. Based on the suite answer: 86121
But I'm having an issue writing back, popup goes blank after the item is selected and submit is clicked. The following HTML snippet in the context.response.write work in SuiteScript 1.0.
context.response.write('<html><head><script>var winObj = parent.Ext.WindowManager.getActive();winObj.addItem("' + selectedItem + '");winObj.close();</script></head></html>');
Thanks in Advance.
Sam