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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Tab Access

I want to make a specific tab viewable by certain users only.

In my load script, I have the following:

Section Access;

Load * inline [

USERID, PASSWORD, ACCESS, GROUPNAME

bloggsj jb,USER,G1

smithj,js,USER,G2

admin,1,ADMIN,*

];

Section Application;

Star is *;

Groups:

load * inline [

GROUPNAME

G1

G2

];

Then in the tab property, I have the following condition

=FieldIndex('GROUPNAME', 'G1')

I would therefore only expect bloggsj and Admin to be able to view the tab but all 3 can.

What am I doing wrong?

4 Replies
Not applicable
Author

Hi, have you ticked the option in document  properties >opening...

'Initial data reduction based on section access'

?

If this isnt ticked then no data will be restricted.

Anonymous
Not applicable
Author

I'm not sure it's a relaible approach to use fieldindex().  Try this:
match(concat({1} distinct GROUPNAME),'G1')

Regards,
Michael

Anonymous
Not applicable
Author

With reference to Michael's comment "I'm not sure it's a relaible approach to use fieldindex().  Try this:

match(concat({1} distinct GROUPNAME),'G1') "

You are VERY right. fieldindex does not work (for me). I get different results on the Web than I do on my server copy when using fieldindex. How that can be I will never know!

I am happy to say that "match(concat({1} distinct GROUPNAME),'G1')" works perfectly!

Thanks for that, I was really stuck.

Regards

David

alexpanjhc
Specialist
Specialist

if they all have a windows login, I'd list them in the propety ->general->condition.

=upper(osuser())='domain\user'

will that help?Capture.PNG