Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Using addSubList in suitelets
I have a question about addSubList.
I have the following code:
var tab = form.addTab( 'custpage_list', 'Record List' );
var list = form.addSubList( 'var_record', 'list', 'List', 'custpage_list');
list.addField( 'custcheck', 'checkbox', 'Check' );
list.addField( 'custtext', 'text', 'Text' );
list.addField( 'custimage', 'image', 'Image' );
list.addField( 'custqty', 'integer', 'Quantity' );
list.addField( 'custvar','select','VAR','customrecord90' );
list.setLineItemValue( 'custcheck',1, 'T' );
list.setLineItemValue( 'custtext',1 ,'Value 1' );
list.setLineItemValue( 'custimage',1 , imageUrl );
list.setLineItemValue( 'custqty',1 , '1' );
list.setLineItemValue( 'custvar',1 , '1' );
list.setLineItemValue( 'custcheck',2, 'F');
list.setLineItemValue( 'custtex',2 ,'Value 2' );
list.setLineItemValue( 'custimage',2 , imageUrl );
list.setLineItemValue( 'custqty',2 , '1' );
list.setLineItemValue( 'custvar',2 , '2' );