Currently, it appears that the Watched inputs for any SQL query are limited to the inputs explicitly made available to the query. While this behavior is suitable for many cases, I have encountered scenarios where it would be more effective to monitor all inputs—that is, any variables within scope.
To be clear, I am referring to the following menu:
In my particular situation, when a module on the page exposes an output variable, I want the ability to refresh my grid whenever that variable changes. My current workaround is to include the variable in a non-functional clause like (WHERE true OR 1={{ var.value }})
. While this approach works, it feels more like a hack than a proper solution.
P.s. A more robust and elegant solution, in my view, would be to introduce a "Listener" option for each module used elsewhere. This listener would respond to events emitted from within the module itself, rather than relying solely on properties.