Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.
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
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.
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
Oh, I see. I'm not sure of an automated way to handle both of those cases. Maybe someone else will have an idea.
Nethertheless, thanks ...
Maybe the only way is really to change the user-contexts and distinguish with those different user contexts ...
Best regards
Stefan
To be tested but you can use osUser() and qlikviewversion().
Maybe you'll be able to differenciate Developper and publisher versions... to be tested
If the developer does not reload on the same machine as Publisher, you may be able to make a distinction uisng computername().
-Rob