I'm getting Inventory Detail subrecord sublist lin...
# suitescript
a
I'm getting Inventory Detail subrecord sublist line count always returning 0, does access to Inventory Details only works in Dynamic Mode?
s
the record already has an ID subrecord?
c
Are you using the sublistId
inventoryassignment
in your
getLineCount
method?
a
Line Count is returning 0, I think this may be a NetSuite thing... itemReceipt = afterSubmit context.newRecord
s
IIRC, in dynamic mode a record gets a pre-initialized empty row for sublists, even though the line count remains 0 if queried. Does
oInvDetailRec
have previously saved inventory assignment line(s)?
a
Yeo it does have 5 lines there in one of the Item Receipt lines and still returning 0 all the time.
c
I know that the inventorydetail sublist subrecord does act finicky in Dynamic mode; I have been able to use code similar to yours in DeferredDynamic mode to read and write this field though. Are you sure that
i
is incrementing as you expect?