```var subRecord = rec.getSublistSubrecord({sublis...
# general
m
Copy code
var subRecord = rec.getSublistSubrecord({sublistId: sublistId, fieldId: 'inventorydetail', line: i});
var lot = subRecord.getSublistValue({
        sublistId: 'inventoryassignment',
        fieldId: 'issueinventorynumber',
		    line: 0
        });
b
either log the subrecord so you can see the fields
or inspect it in the debugger
inventory details use different fields depending on the direction the inventory is going
m
no, on the same sublist row of subrecord , i got a bill but Serial/Lot number still empty. log not error anymore.
b
load an existing item receipt with a lot set
log the inventory detail of the line with the subrecord
alternatively use the debugger to inspect the inventory detail subrecord instead
m
as you mention, i put it to debuger and as picture. from UI every inventory date is showing but on code can not get lot…
b
if you are using the 2.1 debugger, then you need to inspect subRecord.toJSON()
the 2.0 debugger automatically converts objects to json, the 2.1 debugger does not
m
On debuger watch, i inspect focus object to JSON but not properties appear. any suggest here
b
you are watching subRecord.toJSON, which is a function
you want to watch the return value of calling subRecord.toJSON()
m
Thank you!! that detail explored. that value is expected. one more time thank you!