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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Trouble Calling Suitelet
Hi,
I'm playing around with my first attempt at incorporating google maps. I've created a suitelet that I've verified as working by calling directly from the address bar, however, upon the load of the record, I can't seem to get it to work. Here is my code:
function googleMapForm(type, form) { if ( type == 'view' || type == 'edit' ) { /* Add Google Map tab to page. */ var tab = form.addTab( 'custpage_googlemap_tab', 'Google Map' ) form.insertTab( tab, 'general' ) nlapiLogExecution('debug','Test 1', 'Success'); var map = form.addField('custpage_googlemap', 'inlinehtml', null, null, 'custpage_googlemap_tab') nlapiLogExecution('debug','Test 2','Success'); /* Generate URL for Suitelet, include internalid of the current customer. */ var serverUrl = nlapiResolveURL( 'SUITELET', 'customscript_google', 'customdeploy_google' ) + '&truckloadid='+nlapiGetRecordId(); nlapiLogExecution('debug','Details','serverUrl = '+serverUrl) /* Output IFRAME container for Google map page. */ map.setDefaultValue( '<iframe src="'+serverUrl+'" style="width: 504px; height: 404px; margin:0; border:0; padding:0"></iframe>' ) nlapiLogExecution('debug','Test 3', 'Success'); } } 0