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!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
setting the value of a sblist field in a field change event
I am using a form client script. I am trying to the change the value of a field in a sublist. I can tell the script executes, but does not set the value
Is this correct?
if (context.fieldId == 'location' || context.fieldId == 'quantity') {
Object.keys(context.currentRecord).forEach(function(key) {
// alert('key:' + context.currentRecord[key]);
}); //**************for each function**************
context.currentRecord.setCurrentSublistValue({ sublistId : 'item',
fieldId : 'quantity',
value : 12 ,
ignoreFieldChange: false });
var sublist = 'Sublist: ' + context.fieldId;
log.debug('Field Changed: ', sublist);
// log.debug( 'Field Change', 'Sublist:' + context.sublistId + ':' + context.fieldId );
alert('Sublist:' + context.sublistId + ':' + context.fieldId);