Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filter Document without using section access

Hi, it it possible to filter a document using the osuser() with a corresponding document ID?

eg,

I have the following lookup table :

  

OSUser()DocumentUserID
mydomain/user1smith
mydomain/user2jones
mydomain/user3evans
mydomain/user4thomas
mydomain/user5rees
mydomain/user6hunt

In my document dataset I also have the DocumentUserID field.

Is it possible to set the DocumentUserID field depending on the value of the OSUser()??

many thanks,

Tom

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Yes but it is not as safe as section access.

Not applicable
Author

Thanks for your reply.

I understand that - but I need to give the user the option of seeing all the data if required after the document is initially filtered on opening.

Do you know how to achieve this?

Not applicable
Author

Assuming you have OSUSER field in your document.

Document Properties -> Triggers -> Document Event Triggers -> OnOpen -> Add Action(s) -> Add -> Selection -> Select in Field -> OK -> OSUSER as Field -> =OSUser() as Search String

Regards,

KKR

alexandros17
Partner - Champion III
Partner - Champion III

if you need to filter data by user then test if  Osuser() match with your user into your chart or your sheet.

I shuld need more details to help ypu more