I've got a inline html field that's created in a u...
# suitescript
j
I've got a inline html field that's created in a user event that defaults to an iframe that calls a suitelet. The suitelet loads an html document that creates a google map. When someone makes a search in that map I have a call back function that grabs the address. This is all running on a sales order record. I can't figure out how to set the address value on the current record from that context. I can't get the script to load any netsuite modules, i've tried adding a script source to the html document for a client script and loading the modules that way, but it conflicts with the api I'm loading. It gives me a double require error. Has anyone figured this out before?
b
use Window.parent from the iframe's window to access the parent window
it allows you to run code using suitescript modules in the parent using window.parent.require
j
@battk Thanks for responding! Do you happen to have any code examples of using window.parent.require and using a suitescript module? I assume that you would use a client script to make the modules accessible
I figured out how to solve this, thanks for the tip!