Hello, I have sublist (type: LIST) on a live Suite...
# suitescript
s
Hello, I have sublist (type: LIST) on a live Suitelet. My issue is that I am unable to set the sublist value(s) via my ClientScript. Any help would be greatly appreciated. The Suitelet is in dynamic mode, but sublist_2 would not be active (just used for display purposes). When I run the following code, I don't get any helpful errors in the console log.
Copy code
//ClientScript

function calledViaSublistButtonClick() { 

var myRecord = currentRecord.get();

            myRecord.selectLine({
              	sublistId: 'sublist_2',
              	line: 0
            });

            myRecord.setCurrentSublistValue({
              	sublistId: 'sublist_2',
              	fieldId: 'fee_item',
              	value: 100,
              	ignoreFieldChange: true
		    });

            myRecord.commitLine({
 				sublistId: 'sublist_2'
			});
}
j
the sublist id and field id doesnt seems right, it should start with custpage, can you double check these ids
s
These ID's are correct, as they're associated to a sublist. Fields on the main suitelet page are custpage_. I can rename these to anything.
b
follow the directions in serverWidget.SublistType for making the field editable