I don't know all it does but from that attached Cl...
# suitescript
a
I don't know all it does but from that attached Client script to have fully access to the current record in view mode you need to use the
'N/currentRecord'
module and this:
var cuRec = currentRecord.get();