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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Getting File Name from current file

I want to read the name of the current file into my script, but it doesn't appear and of the "File" functions work.

All I want is something simple in my script like

Table1:

Load

*,

FileName

RESIDENT Table;

In this case I want the "FileName" to simply return the name of the QlikView QVW I am using.

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

You can simply use the function DocumentName().

View solution in original post

4 Replies
petter
Partner - Champion III
Partner - Champion III

You can simply use the function DocumentName().

zagzebski
Creator
Creator
Author

Wow - how did I miss that?! Thanks.

petter
Partner - Champion III
Partner - Champion III

A working example:

Table1:

LOAD

     *,

     DocumentName() AS FileName

RESIDENT

     Table;

puneetagarwal
Partner - Creator II
Partner - Creator II

Hi Petter,

Can we get the caption name/window title as a filename while exporting the excel.

Eg: if we make a current selection as companyname like 'abc' the window title shows as abc_report, now i want the excel exported should take the name as abc_report.

Is it possible?

Regards,

Puneet