Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using the QlikView Distribution service to reload a document (from a source document).
On the first reload invoked using the API, the document is reloaded and appears on the disk however
_qvClientWS.GetUserDocuments()
does not return the document, unless I explicitly use the QMC console in the browser and I press F5 or CTRL+F5 to reload the documents.
Once I see it listed in the browser , and call again
_qvClientWS.GetUserDocuments()
the document appears in the returned list.
It is like the QMC browser refresh is using a different API that populates correctly the list of user documents available.
So, the question is, how can I make GetUserDocuments return the good list (with my just created/reloaded user document in it).
I tried to use thread sleep and wait forever for a magic refresh to happen, but it never worked.
I opened a support ticket and it seems that it is a known issue.
The solution for this is to use
_qvClientWS.ClearQVSCache(QVSCacheObjects.UserDocumentList);
To reload the cache.
I opened a support ticket and it seems that it is a known issue.
The solution for this is to use
_qvClientWS.ClearQVSCache(QVSCacheObjects.UserDocumentList);
To reload the cache.