I always get an error message on pageInit saying "...
# suitescript
l
I always get an error message on pageInit saying "TypeError Cannot read properties of undefined (Reading 'getLineCount'). Any problem with it?
m
On
pageInit
,
context
does not have a
newRecord
property. Line 9 should probably read
Copy code
var itemReceiptFromRa = context.currentRecord;
b
Yes, I believe you need to use context.currentRecord instead