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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
jagannalla
Partner - Specialist III
Partner - Specialist III

Dynamically UserId should apply to path loaction

Hi,

- I had provided authentication to my qvw file with following code:

Section Access;

LOAD * INLINE [

    ACCESS, USERID, PASSWORD

    ADMIN, USER, USER

];

Section Application;

- When i'm opening it will ask userid and password. After login i want to see userid for that i had taken qvw function " =qvuser() ". Now it shows the login userid in text object.

- Now i'm trying to store text file in one folder and the FolderName is UserId(i.e., USER ).

- Previously my code for store the txt file is like this.

Table:

LOAD A,B

AUTOGENERATE 1;

STORE VariableTable INTO D:\Examples\USER\File.txt (txt);

- Now i want to change the folder name dynamically as per login userid. For this i stored login userid in one variable(i.e., vUser=qvuser())

Table:

LOAD A,B

AUTOGENERATE 1;

STORE VariableTable INTO D:\Examples\$(vUser)\File.txt (txt);

- It shows the following error while reload

Capture.PNG

- How can i overcome this.

1 Solution

Accepted Solutions
Anonymous
Not applicable

DId you use SET to set the variable? In that case try LET

View solution in original post

2 Replies
Anonymous
Not applicable

DId you use SET to set the variable? In that case try LET

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Jonhannes,

Ya it's working with LET, Previously i tried with SET.

Thanks a lot...