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.
Invalid sublist operation error in line init function
Hi,
I want to disable the loaction field in lineinit function for the new records and for old records for all the lines. I am getting Invalid sublist operation error for the new line that is added while editing the old records. I am getting the same error when i create a new record.
Location field getting disabled for existing lines for old records. Please help. Here is the code below.
define(['N/error', 'N/currentRecord'],
function (error, currentRecord) {
function lineInit(context) {
try {
var currentRecord = context.currentRecord;
// var sublistId = scriptContext.sublistId; // if (sublistId !== 'item') return; // In SuiteScript 2.0 Line count starts with index 0; var selectedLine = currentRecord.getCurrentSublistIndex({