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.
2012.1 breaks validateField using nlapiGetCurrentLineItemValue()
In suitescript, validateField scripts are supposed to allow us to validate a fields values before the field is changed.
For a normal body field, this works as expected.
> nlapiGetFieldValue('custbody_notes_add')
"123"
//changing field from 123 to 123456
media.nl:397 jm_validateField: type:null name:custbody_notes_add
> nlapiGetFieldValue('custbody_notes_add')
"123456"
media.nl:195 jm_fieldChanged: type:null name:custbody_notes_add
> nlapiGetFieldValue('custbody_notes_add')
"123456"
For a column field this does not work correctly.
> nlapiGetCurrentLineItemValue('item','custcol_qty_bo')
"0"
//changing field from 0 to 1
media.nl:397 jm_validateField: type:item name:custcol_qty_bo
> nlapiGetCurrentLineItemValue('item','custcol_qty_bo')