its a client script you gotta use the current reco...
# suitescript
c
its a client script you gotta use the current record module to get a handle to the current record