getCurrentSublistSubrecord
# suitescript
a
getCurrentSublistSubrecord
m
Am using the subrecord.nlapiViewLineItemSubrecord, and then when i call the subrecord.getLineItemCount(‘inventoryassignment’), its returning me 0 as count, when there are subrecord that were added, in the UI
@andrewh: thoughts?
a
you need the use the ''Current" style, you'll need to select the line item of the item list, then
var subRec = nlapiViewCurrentLineItemSubrecord('item', 'inventorydetail')
subRec.selectLineItem('inventoryassignment', i)
var lotId = subRec.getCurrentLineItemValue('inventoryassignment', 'issueinventorynumber')
my 1.0 is a little rusty, but that's pretty close, it might be the 'receiptinventorynumber' depending on the record type
and if the 'view' current line item subrecord doesn't work, try the 'edit'