Join Slack
Powered by
Retain the loaded record in a variable outside the...
# suitescript
j
jkabot
11/08/2018, 5:04 PM
Retain the loaded record in a variable outside the scope of the validateLine
Copy code
var rec; function validateLine() { if (!rec) { rec = record.load({ ... }); } }
you'll only load the record hte first time validateLine is called
Open in Slack
Previous
Next