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'); } } I get all 3 test executions successful, however it can't seem to load the record or much less call the suitelet for some reason.Any thoughts?Thanks