You may consider using a Execute Javascript code in your dynamic action with type Button pressed and then do a Ajax callback.
https://apex.oracle.com/pls/apex/germancommunities/apexcommunity/tipp/3341/index-en.html