Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Jon_87
Contributor
Contributor

Accessing QlikView Attributes from Live folder structure

Morning all,

 

I am trying to create some script that allows me to extract a list of all the .qvw files that are on our production file path, and so far I have been using the following.

Set vConcatenate = ;
sub ScanFolderProd(Root)

for each FileExtension in 'qvw'
for each FoundFile in filelist( Root & '\*.' & FileExtension)
Files:
LOAD lower(mid('$(FoundFile)',index('$(FoundFile)','\',-1)+1,len('$(FoundFile)'))) as SourceFile
, Filesize('$(FoundFile)') as Size
, FileTime('$(FoundFile)') as Last_Modified
, 'Production' as Status
AUTOGENERATE 1;

Set vConcatenate = Concatenate;
next FoundFile
next FileExtension

for each SubDirectory in dirlist( Root & '\*' )
call ScanFolderProd(SubDirectory)
next SubDirectory
end sub

Call ScanFolderProd('\\filepath') ;

 

What I am after, is a way of also extracting the attributes (as specified in the QMC), we have assigned each document a developer, department and business owner, and to get this as well as the list of .qvw files would be a great help.

Thanks!

Jon

1 Reply
Brett_Bleess
Former Employee
Former Employee

Check out the following Design Blog, pretty much what you are trying to do I believe:

https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.