I'm having an issue on getEventArgs() of the execution context object. I've passed the execution context as first parameter on the field event
However, I am encountering this error once it fired:
When I debug the script, I observed that the execution context has 'undefined' _eventArgs attribute:
This is working on previous version but when we transitioned to UCI, this issue occurs.
I've raised a support ticket on Microsoft and they confirmed that this is an issue on UCI upgrade. It was fixed with their weekly patch updates.
Hi Miguel, yes that is part of my code:
I'm wondering if in UCI the getEventArgs() is moved to other object or the way it should be retrieved has changed.
Hi,
have you tried:
function preventAutoSave(executionContext) { var eventArgs = executionContext.getEventArgs(); if (eventArgs.getSaveMode() == 70 || eventArgs.getSaveMode() == 2) { eventArgs.preventDefault(); } }
In your scenario without the prevendefault.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156