I'm trying to disable a sublist column in SS2.0 an...
# suitescript
d
I'm trying to disable a sublist column in SS2.0 and cannot seem to figure it out. I've tried currentRecord.getField, but it seems like that's for body fields. I've tried currentRecord.getSublistField, but that's looking for a specific line id. Is there a simple way to do this in 2.0? SS1.0 was simple:
Copy code
nlapiDisableLineItemField('item', 'amount', true);
b
gap in ss2
ss1 is what you want if you cant get a line
d
Thanks. I read somewhere that it's a gap and was hoping that there was an update. I'll roll it out in 1.0 for now. Thanks again!
m
I believe the 2020.2 release notes mention a new method available for this that doesn't require a line number, so hopefully the 1.0 workaround can be short-lived.