Is there a way to distinguish between user-triggered and programmatically triggered events?
For example, I have a scenario where I programmatically select rows in a table, and another where the user manually selects a row. There is an event handler set up on the “select row” event, but I only want it to run for manual row selections.
I bit difficult to know the best solution without being in the environment but a quick solution would be to add a variable thats called MANUAL_TRIGGER that defaults to be true. then on the selectRow event handler, add to the “only run when” section when MANUAL_TRIGGER == true
Now, when you call the query that will programatically select rows have a JS query thats
Thanks for reaching out, @axel.trolle! I don't think there's a natively supported solution to this particular problem, but you can certainly wire up any number of functional solutions.
@DavidD outlined one such solution above - essentially, define a globally scoped variable that can be toggled on and off and then referenced in order to determine whether or not the handler should trigger. Let us know if you have any questions about implementing something like this.