Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Weekly TimeSheet client script totalHours not refresh in direct
Hello,
I have a question when i use a client script on time sheet, i use this ==>
var timesheetRecord = scriptContext.currentRecord;
var totalHours = timesheetRecord.getValue('totalhours');
But when i log it this variable totalHours , i don't have the current value but i have the previous save value on the record and not the value in direct.
can i do a refresh in my script for take the good value i direct before save it ?
function saveRecord(scriptContext) {
var timesheetRecord = scriptContext.currentRecord;
var totalHours = timesheetRecord.getValue('totalhours');
log.debug({
title : 'totalHours',
details : totalHours
});
if (Number(totalHours) > 39) {
dialog.alert({
title : 'Alert',
message : 'Le temps total saisie est supérieur de 39'