Callback event after the last script column method call

Could you please add a flag to ScriptColumn so that, after the designated method(s) have been called for the last item, they're invoked one final time (or perhaps call a separate method like OnFinishScriptColumn)?

What would this be useful for? In my case, mainly cleanup and cache-related tasks. Since there's currently no way to know how many items will be processed, having a reliable way to detect when the calculation has finished would be very useful.

As a workaround, I tried using a timer that gets reset after each item, so it only fires at the end. That does work, but the downside is that it runs in a different instance from the one calculating the columns, so global variables values aren't the same. And since we can no longer store JScript objects in Opus variables, that becomes a problem.

Thanks for considering it.

1 Like