RE: Pass Data from popup Suitelet to Parent Suitelet in a 2.0 SuiteScript
Can someone tell me how can I pass the Data from a popup suitelet opened using window.open() to the parent Window using SS2.0.
- popup opened using window.open(URL);
- trying to pass data to Parent Suitelet using window.opener.FunctionInParentWindow
- Error: Function is undefined
Is there a standard code/practice to open and pass data from a popup suitelet to Parent Suitelet?
See SuiteAnswer 88583.
window.opener.require([‘/SuiteScripts/Test/ps_test_client’], function(myModule) {
myModule.setTestField(field1);
})
battk
In theory your approach sounds fine. Share the relevant code to see if you are missing somethinig.