Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

List All Sheets Within a QVW file

Is it possible to generate a list of all the sheets (sheet names & id's) within a QVW file without typing them individually in an inline load or into a text box?

1 Solution

Accepted Solutions
Alexander_Thor
Employee
Employee

Hi Amy,

This is a solution that won't require you to use prj folders or macros. You would need to be on QV11 for it to work or the last SR of QV10.

Sheets:

LOAD

     filepath() as FileName,

     SheetId as SheetId,

     Title as Label 

FROM [YourAppName.QVW] (XmlSimple, Table is [DocumentSummary/Sheet]);

Replace YourAppName.QVW with the name of your QVW.

If you want to be super fancy you could wrap this in a loop that reads your entire deployment and voila you have a list of all the sheets for all your apps.

View solution in original post

4 Replies
nagaiank
Specialist III
Specialist III

To get the sheet id's, you can read the 'QlikviewProject.xml' in the <appl>-prj folder

E.g.

PrjSheetProperties:

LOAD SheetId,

    IsActive

FROM [test-prj\QlikViewProject.xml] (XmlSimple, Table is [PrjQlikViewProject/SHEETS/PrjSheetProperties]);

You can get sheet names, from the <sheetid>.xml files.

Hope this helps.

Not applicable
Author

Alexander_Thor
Employee
Employee

Hi Amy,

This is a solution that won't require you to use prj folders or macros. You would need to be on QV11 for it to work or the last SR of QV10.

Sheets:

LOAD

     filepath() as FileName,

     SheetId as SheetId,

     Title as Label 

FROM [YourAppName.QVW] (XmlSimple, Table is [DocumentSummary/Sheet]);

Replace YourAppName.QVW with the name of your QVW.

If you want to be super fancy you could wrap this in a loop that reads your entire deployment and voila you have a list of all the sheets for all your apps.

saumyashah90
Specialist
Specialist

check this out