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

How to get the corresponding value based on the login user used in Section Access?

Hi,

I have a requirement s follows...

Need to filter data based on the login user. How to get value corresponding to the login user after successful login.

                           

USERIDPASSWORDCOUNTRY
A123Ind
B123UK
C123USA
D123Jap

Thanks in Advance,

Sohm.

1 Solution

Accepted Solutions
5 Replies
Not applicable
Author

Just wanted to continue which I forgot to include...

If Login user is A, then my requirement is to use the corresponding country associated in the SQL (i.e. Ind user if user is A OR USA if user is C and so...on depending on the login user).

Not applicable
Author

Hi,

If you are login with the NTName as a userID You can use the OSUser() functionality

kalyandg
Partner - Creator III
Partner - Creator III

hi,

Go to Document Properties, Opening tab, kindly check(tick) the Initial Data Reduction Based on Section Access.

Save the document and close, later open and login with any user, and it will show corresponding values of the particular user who have been logged into the document.

Thanks,

Kalyan

Not applicable
Author

I am just clearing my question again...

I have a query to fetch data as...

Select * from transaction_data

Where Country = $Country

I want to set Country corresponding to UserID (that is logged in) in the variable in above query.

So, how do I get the value?

my requirement is as... If UserId is A (if User logged in as A) then my SQL query should be like as follows...

Select * from transaction_data

Where Country = 'Ind'

Since country 'Ind' is associated with UserID 'A'.

Thanks,

Sohm.

Not applicable
Author