Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'd like to be able to list out all the scripts behind a large number of Qlikview reports within a windows folder.
Need this so I will understand object dependency and unfortunately we have some reports that have SELECT statements next to calling stored procedures.
Any ideas?
Version: Qlikview 11
Open App-->Open Scrip Editor --> On Top tool Bar,'File'-->Export To Script File.
You can also automate the task of extracting the scripts by writing a simple macro. It may get a bit more complicated if you have sections access, etc...
Hello Laslo,
Yes, I tried my hand at one of these. Like Oleg mentions, some sort of automation can dump the load scripts of all .QVW that will allow it (and also collect stand alone .QVS files). (As an example, the Governance Dashboards may do some automation of this nature)
While collecting the scripts wasn’t necessarily simple, it still wasn’t the trickiest part for me. That came when evaluating QV script syntax as data.
There started to enter a lot of considerations about code as data, regarding line numbering, whitespace, statements that span multiple rows, multiple statements within a single row, what programmatic characters signify the types of programmatic actions, how do you tell when those characters are being used as literals and not as part of a command?
The load script began to get insane, but at the end of it, I was able to compare every .QVW script on my entire archive side by side in a pivot table and apply color-coding based on actions.
A few tests and features, this primitive creation (a pretty rough but functional interface) was able to fulfill:
Hi,
Thank you all for getting back to me.
Do you have a code to share by any chance?
Thank you Oleg,
I will have a look at macros. Not very familiar with Qlikview as yet, but I have written a lot of excel macros, I'm hoping therefore that this is something easy to figure out.