ehcanadian
06/24/2019, 6:13 PMclientScriptModulePath
and in that client script there is a module defined which I am trying to call. I've tried window.opener.functionName
as well as window.opener.myModule.functionName
and both are undefined/not a function.battk
06/24/2019, 6:22 PMbattk
06/24/2019, 6:24 PMbattk
06/24/2019, 6:24 PMehcanadian
06/24/2019, 6:25 PMbeforeLoad
that pops up a suitelet, and when the user submits the suitelet (not a submit button, just a regular button) I need to pass the values back from the suitelet to the parent formbattk
06/24/2019, 6:26 PMehcanadian
06/24/2019, 6:27 PMbattk
06/24/2019, 6:28 PMbattk
06/24/2019, 6:28 PMwindow.opener.require(["N/currentRecord"], function(currentRecord) {
var rec = currentRecord.get();
// and so on
});
Richard Tanner
06/24/2019, 6:29 PMehcanadian
06/24/2019, 6:30 PMehcanadian
06/24/2019, 7:49 PMrequire
worked, thanks. The supply chain management bundle does something similar and that client script calls var parentWindow = window.opener; parentWindow.SCM.ItemSubstitution.processPopupData({qty: qty, location: location, item: selectedItem, line: origLine, origItem: origItem});
I wonder how it's organized. At any rate, thanks again.battk
06/24/2019, 8:03 PM