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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is it possible to track all .qvw's that are accessing a particular .qvd?

Hi All,

I have a get of .qvd's that are commonly used across many .qvw's. I want to search the .qvw's that are accessing a particular .qvd. Is there any way to do that?

Thanks in advance!

Regards,

Anand

3 Replies
prieper
Master II
Master II

If you have switched on the log-files, you can inspect all logs for certain keywords.

HTH
Peter

Not applicable
Author

Thanks Peter!

Is a way to write a script within QV to automate this task?

Regards,

Anand

Not applicable
Author

Something like this might work:

LOAD
@1
FROM *.qvw.log (txt, codepage is 1252, no labels, delimiter is '\n', msq)
WHERE wildmatch(@1, '*.qvd*');

It reads all the lines in the logfile where the text '.qvd' is found.
Further improvements can of course be done by using text manipulation functions.
This removes anything on the line before the FROM keyword:

mid(@1, index(upper(@1),'FROM')+5,999) as qvdFile

Hope it helps you.

/Fredrik