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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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