How do you reference this item value I am trying t...
# suitescript
k
How do you reference this item value I am trying to see if it is equal to another field on an assembly
c
record.getSublistValue({sublistId: 'item', fieldId: 'item'});
record.getCurrentSublistValue({sublistId: 'item', fieldId: 'item'});
where record is your record you're on. It will give back the Item internal ID.
If you use chrome and don't already have it, there's a plugin called "NetSuite Field Explorer" that will let you view the schema and see which field you need to snag and the IDs.
k
I was looking for the string value for the item but it returns are number
So I can compare then numbers with each other to make sure they are equal
c
if you need the string value you can use getSublistText/getCurrentSublistText