error: ```THAT_RECORD_IS_NOT_EDITABLE``` while *ed...
# suitescript
p
error:
Copy code
THAT_RECORD_IS_NOT_EDITABLE
while editting a timebill record with an userevent script... How do i solve this? found nothing in SuiteAnwsers
n
It's probably status related, has it been approved?
p
nope is still 'open'
i'm basicly just getting the duration field and setting a customfield within the timebill record
i guess i'd be looking more into the project record?
n
Are you trying to setValue in an afterSubmit script without first loading the record.
p
nah im using var objRecord = context.newRecord; in the beforesubmit() and in the meantime i've found my issue: used this below and removed it
objRecord.save();
#facepalm
🤭 1
🫡 1