Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Does OnPostReload fire after document saved?

Hi all,

I have a macro that dynamically adjusts the columns (expressions) for an existing chart, depending on the input data. The document calculates the costs of common work and is designed so that when new ones are added or old ones removed then I dont need to change the document as it is self adjusting.

The document is called for reloading using a remote procedure call using the '/r' switch. At the end of the script, the macro should run (using references to ActiveDocument) and then the document should be saved.

Although the macro works OK when run manually (through a button) when it is attached as the 'OnPostReload' trigger, nothing seems to happen. Does 'OnPostReload' occur after the document is saved? Or is the problem with the references to ActiveDocument (which can no longer be referenced by macros called within the script)?

Any help appreciated.

Regards,

Gordon

1 Reply
Not applicable
Author

This can almost be resolved by adding:

'ActiveDocument.Save'

at the end of the macro, the only negative being that it does actually result in a double save (you get 2 'versionNNN of...' of the document).

Still like to understand what is happening with'OnPostReload' though - anyone?

Regards,

Gordon