Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
nlapiLoadRecord fails for non-Administrator roles
We are experiencing a problem with the nlapiLoadRecord() function when it is invoked by the Field Changed Function in the client script of a Customer form for non Administrator roles (works fine for Administrators). The following code results in an error ReferenceError:_funcname is not defined.
var customStatusId = nlapiGetFieldValue(fieldName);
var customStatusRecord;
try {
[INDENT]customStatusRecord = nlapiLoadRecord('customrecord35', customStatusId);[/INDENT]
} catch(error) {
[INDENT]alert("ERROR LOADING: " + error);[/INDENT]
[INDENT]return false;[/INDENT]
}
customrecord35 is a custom record type we have defined. The Use Permissions checkbox is un-checked and no permissions are defined in the permissions tab.
If I check the