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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Section acess hide column data

I want to apply section access for the following scenario

I have following data

User,Country,dob

U1,USA,01/01/2017

U2,UK,20/01/2017

U3,SPAIN,21/02/2017

I need to display data as

When U1 logs in then following should be displayed

User,Country,dob

U1,USA,01/01/2017

U2,UK,***

U3,SPAIN,***

When U2 logs in then following should be displayed

User,Country,dob

U1,USA,***

U2,UK,20/01/2017

U3,SPAIN,***

When U2 logs in then following should be displayed

User,Country,dob

U1,USA,***

U2,UK,***

U3,SPAIN,***

15 Replies
Anonymous
Not applicable
Author

Thanks for reply.

I tried using osuser(), it works perfect on local machine, but when accessed from access point it gives some random value.

Please suggest.


eduardo_dimperio
Specialist II
Specialist II

Amar,

OSUser() get the NT user, try this subfield(OSUser(), '\', 2)  and check if correspond to the user logged on NT

Anonymous
Not applicable
Author

I have already checked subfield(OSUser(), '\', 2).

It gives random value.

Anil_Babu_Samineni

Have you tried Massimo solution?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anil_Babu_Samineni

I assume, QvUser() instead OSUSER()

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
eduardo_dimperio
Specialist II
Specialist II