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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro help - Preselect depending on domain user name

Hi,

I have several users logging in through NTFS authorization.

Suppose they are Division Manager, and the requirement is that their responsible Division pre-selected once QV page open. (No reduction, they can still see everything once selection released).

How do I write a macro to distinguish the osuser name and preselect divisions for them, if I want to use the same application instead of generating several versions?

Thanks!

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Maybe this can help you? In this example i did not use a variable for the osuser.

View solution in original post

4 Replies
Not applicable
Author

You can use a variable which is filled with osuser() function. On Document open trigger you can select a value, based on the variable to the field division!

Not applicable
Author

Hi Jochem,

Thanks for reply, but I am not sure I understand what you meant.

I understand osuser() function but I don't know how to utilize that in your example.

Say the username is qlikview and he is assigned to Division B, how does that work in your method?

Thanks in advance!

Not applicable
Author

Maybe this can help you? In this example i did not use a variable for the osuser.

Not applicable
Author

Thanks Jochem, this is working!