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?

Rookie Asked on January 31, 2020 in SuiteScript.

In theory your approach sounds fine. Share the relevant code to see if you are missing somethinig.

on January 31, 2020.
Add Comment
2 Answer(s)

Is the function in parent window is SS2.0 or 1?
If it’s 2, it’s no accessible straight from window.opener since it’s inside a module.

You need to either write the function in SS1.0, or try to access it through the mod.

Rookie Answered on February 23, 2020.
Add Comment

See SuiteAnswer 88583.

 

window.opener.require([‘/SuiteScripts/Test/ps_test_client’], function(myModule) {
 
myModule.setTestField(field1);
 
})
Rookie Answered 6 days ago.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor