but the field is still enable
# suitescript
s
but the field is still enable
l
Try this syntax:
var objSublist = objRecord.getSublist({ sublistId: 'item' }); var objField = objSublist.getField({ fieldId: 'item' }).; objField.isDisabled = true;
n
field.updateDisplayType({ displayType: serverWidget.FieldDisplayType.DISABLED }); should work too I believe.
s
😞 both solutions did not work. Thanks thou
n
maybe share your code? BTW you actually running the code for each column concerned right?
Here's a snippet of an inlineeditor sublist with a column set to disabled, that works for me.
s
Excellent. It's working. It was my fault. Sorry