Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Passing the QVW Filename into a Variable

Hi there,

I have had a quick search and cant find a similar question (admitedly I might not be searching for the right thing)

Does anyone know of a way I can pass the name of the QVW file into a variable so that I can use it in the code editor.

My idea is to then use it in the WHERE clause of a section access load statement in order to give us the ability to restrict the results returned from a view to only those with a matchign report name, allowing us to grant access to individual reports without hundreds of text files or views.

If anyone knows of a way to pass this variable in, or knows of a better way to meet my objective, any help is greaty appreciated.

Thank you,

Chris

1 Solution

Accepted Solutions
Jason_Michaelides
Luminary Alumni
Luminary Alumni

Use the DocumentName() function:

LET vDocName = DocumentName();

Hope this helps,

Jason

View solution in original post

3 Replies
Jason_Michaelides
Luminary Alumni
Luminary Alumni

Use the DocumentName() function:

LET vDocName = DocumentName();

Hope this helps,

Jason

Not applicable
Author

ok, so I was pretty stupid to ask... that one was actually quite obvious!

Thanks for your help! (again!)

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Not stupid at all.

Please mark the correct answer to close the thread.

Cheers,

Jason