Hi,
I'm using Bryntum Scheduler Pro with Vue3 (thin packages, v6.2).
I have normal events in the eventStore. These are created by the user. Change tracking and STM transactions should work normally for these.
But we also have events which need to be created programatically on some special actions. These we normally insert using eventStore.addAsync and remove using eventStore.remove. The problem is that these also show up in the eventStore.changes and create stm transactions when added/removed.
Disabling STM is already a nighmare. Setting stm.autoRecord=false and autoRecord=true afterwards plus stopping the running transaction works (stm.stopTransaction) in some cases, but not in all (e.g. it's problematic when trying to disable transaction in the dataChange event handler. Imagine the user removed and event - this we want to track, but also we want to remove events programatically - this we don't want to track).
What is the proper way to handle this?
- don't add programatically added events to changes, simply disable tracking for them
- don't record changes made to these programatically added events never ever, but leave normal event tracking intact. Also make it possible to "react" to normal event changes in the dataChange event handler without messing up stm transactions.
Thank you.