Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
marcel_olmo
Partner Ambassador
Partner Ambassador

How can you execute a Macro after a "post reload" event on the server?

I don't know why, you can execute a macro after a post reload event on a "Client Side", but, when you try to do the same on the server, it does nothing.

Anybody knows how to fix that?

By now, I'm using batch files.

Many thanks in advance!

3 Replies
Anonymous
Not applicable

Hi,

The same issue is happening to me.

Help.

Bill_Britt
Former Employee
Former Employee

Hi Marcel,

The only way to do it is with a .bat file. Publisher or the Server reloads do not executive any macros.

Bill

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
luciancotea
Specialist
Specialist

... or a .vbs file like

Set MyApp = CreateObject("QlikTech.QlikView")

Set MyDoc = MyApp.OpenDoc ("C:\QlikViewApps\Demo.qvw","","")

Set ActiveDocument = MyDoc

ActiveDocument.Reload

Set Button1 = ActiveDocument.GetSheetObject("BU01")

Button1.Press

MyDoc.GetApplication.Quit

Set MyDoc = Nothing

Set MyApp = Nothing

Lucian