Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How made invisible list ?

Hi all!  

I have logins admin,user1 and user2. Have list1 and list 2. How i can made list2 inviseble for user1?

acc.png

it not work

and =if(qvUser()='USER1',False(),True())  not work

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

here i update the .qvw hope this is what you need

View solution in original post

16 Replies
tresesco
MVP
MVP

Could please post your sample app?

Anonymous
Not applicable
Author

Hi Kons,

try this in edit script

Load * Inline [

ACCESS, USERID, PASSWORD, USERTYPE

ADMIN, ADMIN, ADMIN, *

USER, USER1, U1, USER1

USER, USER2, U2, USER2

];

section application;

Load * Inline [

USERTYPE

USER1

USER2

];

after that at list 1 conditional type:

=Match('USER1',$(=CONCAT(CHR(39)&REGION&CHR(39),',')))

at list 2 conditional type:

=Match('USER2',$(=CONCAT(CHR(39)&REGION&CHR(39),',')))

hope it can handle what you need

Regards,

Not applicable
Author

Load * Inline [

ACCESS, USERID, PASSWORD, TOID

ADMIN, ADMIN, ADMIN

USER, USER1, U1, 3

USER, USER2, U2

];

section application;

Not applicable
Author

if   in type list 1=0 - it must be invisible, BUT I see it

michael_maeuser
Partner Ambassador
Partner Ambassador

did you make sure that you have the correct osuser and if there´s domain you need that too? is suggest create a textbox with =osuser() to make sure you write it exactly that way. also in the condition put your username in '', s.th. like that

=osuser()<>'user1'

michael_maeuser
Partner Ambassador
Partner Ambassador

oh and make sure you have at least two sheets. and for testing first save the qvw and then open it with user1

Anonymous
Not applicable
Author

Load * Inline [

ACCESS, USERID, PASSWORD, TOID

ADMIN, ADMIN, ADMIN, *

USER, USER1, U1, 3

USER, USER2, U2, 2

];

section application;

then in list 1 conditional type

=Match('2',$(=CONCAT(CHR(39)&REGION&CHR(39),',')))

it should be done and for sure to have sheet more than 1 so you can see the different

tresesco
MVP
MVP


See the attachment, try to login with user2, and then admin. Make sure that you don't save your application when in user mode. You can restrict that in the doc settings-> security-> save doc (uncheck); admin override sec (check)

Not applicable
Author

Hi Konstantin

Is the security for displaying all sheets and objects is disabled ?

regards

Chris