I may be missing something here, are you running a QlikView Server? Meaning are you opening the document on server using clients (IE Plugin, AJAX)? If that's the case, then take into account that not all macros work nor can be triggered by buttons/actions, in first place, in second you will need to set up the server so it allows the execution of non-safe macros and system-access macros, and third, you have to ahve installed the Desktop application in your server, since qv.exe is the Desktop executable.
How are you reloading the dashboard based on the database value?
Is it happening manually or through EDX triggers? we have a similar kind of situation wherein i need to reload the dashboard whenever the user opens the web page(where we load the dashboard in an IFrame).
We tried using EDX Triggers but are facing issues in implementing them.