Add a script button in the marking section of document properties to enable script execution on a change to marking.
Add a script option to filters, either on specific filter items (maybe set in column properties) - but also add a script button to the Filtering Scheme section of document properties - which can fire on any change to a filter, we can be column specific.
This would be very useful, and avoid elaborate data function and document property workarounds.