Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm playing around with inline section access to test out functionality. I'm having trouble logging in with USERs. ADMINs just fine.
here is my code:
Section Access;
LOAD * INLINE [
ACCESS, USERID, PASSWORD
ADMIN, ADMIN, ADMINPWD
USER, BOB, BOBPWD
];
Section Application;
LOAD * INLINE [
USERID, Representative
BOB, BOB
];
When opening the document using the admin user, it opens just fine. If I try to use a USER userid, I get "Access denied to this Qlikview document"
Anyone know what I'm doing wrong? I have reloaded after adding. I have "Initial Data Redectuion Based on Section Access" and "Strict Exclusion" checked.
Yes.
Wow. Ok. Now I’m really confused. I think I’ll start a new document and see what I can do.
Try this one.
Ok, that works. I’ll try and slowly fit in my dynamic data
If you login with your test one using admin and adminpwd you still only see Bob? Not the other two you added to the inline table.
The code really is the same as yours so what I suggest is that you
cross-check my document settings with your own, it is likely to be
related to something on the "Opening" or "Security" tab.
You need to make the Reduction field and Section Access Fields in UPPER CASE. Although, if you are using INLINE Load then QlikView implicitly converts them to UPPER CASE. But if you are loading from Excel / Databases / Other Sources then you need to make the field values in UPPER CASE.
Please be very careful using the '*' (Wildcard) because it doesn't mean all the values in the Actual Field. It means distinct values you have specified in Section Access Table. Unless you have specified all the distinct values within Section Access.
Please read this thread for detailed information and example:
http://community.qlik.com/message/247356#247356
Good luck!
Cheers,
DV
Deepak is correct (thanks)
I missed the other names in section access, please see attached.
Yep, this is what I was doing. I thought only the field name had to be upper, not the actual values. Thank you for the help. Sometimes I feel like an idiot. ![]()
You are welcome Nigel. Also, remember the reduction field name can be in mixed or lower case but the field values should be in upper case. This applies to the Section Access Reduction Field & also original Field Values. I had provided detailed explanation in the above link with sample script.
I hope this makes sense!
Cheers,
DV