Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Loading external websites in a suitelet
Hello everyone,
I wanted to ask on how I can load external websites in a suitelet.
The only thing I found so far on the web is Zigman's http://blog.prolecto.com/2012/04/25/...thin-netsuite/.
function drawManualPage(request, response) { var context = nlapiGetContext(); var url = context.getSetting('SCRIPT', 'custscript_suitelet_url'); var title = context.getSetting('SCRIPT', 'custscript_suitelet_title'); var content = '<iframe width=960px height=100% style="height:640px;" src=' + url + '></iframe>' var newForm = nlapiCreateForm('drawHTML'); var newField = newForm.addField ('content', 'inlinehtml', title); newForm.addField('extra', 'inlinehtml', '') newForm.setTitle (title); newField.setLayoutType('outsidebelow'); newField.setDefaultValue (content); response.writePage( newForm ) } 0