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: 
alec1982
Specialist II
Specialist II

Section Access

Hi guys,

I  am building a section access dashboard and i have done several times in different ways.

Assuming I have User and Manager columns within the table i am going to use what would you think the best way to accomplish the section access dashboard giving that User can be in both User and Manager column and the manager needs access to all his/her Users.

Let me know your thoughts..

Best,

Badr

Labels (1)
18 Replies
alec1982
Specialist II
Specialist II
Author

Thank you Bella,

Would it be possible to just show three columns headers of the data table with no data in it..

Thxs,

Alec

Anonymous
Not applicable

I'm not sure what you mean by data table.  The section access inline table is above. The column headings

ACCESS, - whether admin or user

USERID, - log in

PASSWORD, - password

PMSECTIONACCESS - this is a field in the database that I filter my users on.

alec1982
Specialist II
Specialist II
Author

Thank you Bella..

I will try to build it and let you know if it works.. I think it will not work as I don't see how the manager can be authorized to see his/her users data.. how is the relationship between the Manager and the user is defined within section access if we are using only one column of the database.

Best,

Alec

alec1982
Specialist II
Specialist II
Author

This hasn't been a success for me with having the two columns Users and Managers to work with. Anyone can help.

Best,

Alec

Anonymous
Not applicable

What is it you are trying to filter on?

In section access you can only have two types of users - admin and users

so your section access table will need to have (all needs to be in caps)

ACCESS, USERID, PASSWORD, [FIELD]

ADMIN, ADMIN, ADMIN1

USER, JOHN, PASSWORD1  

USER, JASON, PASSWORD2

USER, GEORGE, PASSWORD3

USER, DAN, PASSWORD4

USER, EMILIE, PASSWORD5

the first three will set up the profiles for your users and assign a username and password but then you need to have a field that their access will be filtered/reduced by given the information you have provided that would most likely need to be the staff name but this needs to be in your main dataset.

ACCESS, USERID, PASSWORD, STAFFNAME

ADMIN, ADMIN, ADMIN1

USER, JOHN, PASSWORD1, JOHN

USER, JOHN, PASSWORD1, JASON

USER, JOHN, PASSWORD1, GEORGE   

USER, JASON, PASSWORD2, JASON

USER, GEORGE, PASSWORD3, GEORGE

USER, DAN, PASSWORD4, DAN

USER, DAN, PASSWORD4, EMILE

USER, EMILIE, PASSWORD5, EMILE

things you need to check

a) this is in the first tab of scripting

b) you field (staffname) is all in caps and with no spaces (can use Upper(purgechar([field], ' ')) to make sure of that

c) do not use * for all just leave blank.

If you are able to send me through your QVW and let me know what field you want to filter on I can have a play and try and knock something up for you.

alec1982
Specialist II
Specialist II
Author

Hi Bella,

The isse is not within the section access table. the difference between my data model and yours is that you are filtering data on one column while i have two Users and Managers..

Thxs,

Alec

Not applicable

Don't treat a manager and a user differently,  The data is different

Example

User, FieldJoiningToData

StaffMemberBill,StaffMemberBill

ManagerJohn,ManagerJohn

ManagerJohn,*

Star is all previously mentioned values, so John inthe above example can see himself and Bill

Not applicable

I recently built a 5 tier heirachy sing 30 lines of code with loops and concats using the above logic

alec1982
Specialist II
Specialist II
Author

Thank you Felmin,

The issue is that some managers don't exist within the users in fact they are just managers and they need to see their users.