Hi,
If I understand correctly, you want to do this automatically without the user seeing it right? If this is the case, you can always call a routine from the dynamic action. Check exemples in the dynamic section for the 6th column (S) with values of "F" which is to call routines.
Regards,
Serge