I'm getting an error when a user updates a field when doing and in-line edit of a saved search that is displaying sales orders. I'm not quite sure how to handle this. The error is displayed below. A user event script is being called and the offending line is "salesOrder.save();" . I assume it's a context issue of some sort but not really sure how or it i should catch it. Any incite would be greatly appreciated!
a
Anthony OConnor
09/16/2024, 10:44 PM
probably belongs in suitescript rather than suiteanlytics
cant really advise without know what the script is trying to do and therefore determine if it should be run in this context.
to just exclude it you'd want to just add a line near the top of the script like
if (context.UserEventType === 'XEDIT') return;
💪 1
thisred 1
Anthony OConnor
09/16/2024, 10:45 PM
if it should be running in the inline edit context, that's fine too but in that case ... it shouldn't be doing a record.save, its presumably already in a before/after submit UE right?
j
JR
09/17/2024, 8:46 PM
@Anthony OConnor Thank you sir! That appears to have done the trick...