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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Who triggered the reload of a document

Hi,

is there a way to get the information who/which application triggered a reload of a document?

I want to know if I have to deal with a manual reload or with a reload triggered by publisher.

Thanks in advance for your ideas!

Best regards
Stefan

8 Replies
Not applicable
Author

There is an Event Trigger called OnPostReload. This seems to trigger when doing a manual reload.

I created a macro linked to the OnPostReload Trigger. In the macro, I set a variable to the value of ActiveDocument.Evaluate("OSUSer()").

When doing a manual reload, that will set the variable with the login name (with domain) of the user who did the reload.

I guess at that point, you could write the value to an Excel file or another data source for recording.

Not applicable
Author

Hi,

thanks for your answer!

... but, the OnPostReload-trigger is also triggered when the document reload is made by the publisher; so I could not distinguish between a manual reload or a reload triggered by the publisher ...

??

Best regards
Stefa

Not applicable
Author

But wouldn't the value of OSUser() be able to identify where the reload was done? If an end user did the reload, you would get their login information. If the server did the reload, you would get the server information. You would probably need to do some testing and parsing of the results.

Not applicable
Author

Thats correct; but in my case I have to differentiate if:

- either the developer is doing the reload
or
- the reload is triggered by publisher ...

So far so good, but the devoper and the publisher are running under the same user-context ...

Best regards
Stefan

Not applicable
Author

Oh, I see. I'm not sure of an automated way to handle both of those cases. Maybe someone else will have an idea.

Not applicable
Author

Nethertheless, thanks ...

Maybe the only way is really to change the user-contexts and distinguish with those different user contexts ...

Best regards
Stefan

Not applicable
Author

To be tested but you can use osUser() and qlikviewversion().

Maybe you'll be able to differenciate Developper and publisher versions... to be tested

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

If the developer does not reload on the same machine as Publisher, you may be able to make a distinction uisng computername().

-Rob