Discussions
Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!
Join the largest gathering of the NetSuite Community at SuiteWorld in Las Vegas, September 9-12! Discover cutting-edge innovations, attend insightful sessions, network with industry leaders, and elevate your business to new heights. Register here!
Record.load not work when you do currentRecord.get ?
Hello,
In my client script, when i do record load alone it's working fine same with rec.setValue and rec.save.
But when i put a currentRecord.get before all of my code, my record.load it's impossible why ?
Because when i put scriptContext.currentRecord; in other script it's working fine :(.
function calculBudget() {
var record = currentRecord.get();
var projectId = record.id;
log.debug("project", projectId);
log.debug("calculBudget", "appel via le button");
var rec = record.load({
type : 'customrecord_projet_budget_reel',
id : 2,
isDynamic : true,
});
log.debug("calculBudget", "record load");
rec.setValue({
fieldId : 'custrecord_budget_reel_frais_pers',
value : 15,
ignoreFieldChange : false
Tagged:
0