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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Section Access

Currently I'm trying to implement section access for 2 seperate users on a QlikView document. I wondering if someone might be able to help me with this piece of code.

section

access;

Load

[ACCESS], [USERID], [PASSWORD]

admin



, pei, 6412,

user

, ortho, 9523,



FROM [\\\QlikViewReports\SecurityDemo1.xls] (biff, embedded labels, table is Access$);

section

application;











This is the error I'm receiving. Hopefully someone might be able to offer some advice.

Syntax error, missing/misplaced FROM:
Load [ACCESS], [USERID], [PASSWORD]
admin, pei, 6412,
user, or, 9523,


FROM [\\\QlikViewReports\SecurityDemo1.xls] (biff, embedded labels, table is Access$)
Load [ACCESS], [USERID], [PASSWORD]
admin, pei, 6412,
user, or, 9523,


FROM [\\\QlikViewReports\SecurityDemo1.xls] (biff, embedded labels, table is Access$)

4 Replies
Not applicable
Author

may be the last comma indicates it's waiting for another field

christian

kji
Employee
Employee

What you got is a mix of an inline load and a load from file.

Use either:

LOAD * INLINE [
[ACCESS], [USERID], [PASSWORD]
admin, pei, 6412,
user, or, 9523
];


or

Load [ACCESS], [USERID], [PASSWORD]
FROM [\\QlikViewReports\SecurityDemo1.xls] (biff, embedded labels, table is Access$);

Not applicable
Author

Thanks for the replies, much appreciated...

I put this code in but got back an error straight away. I was hoping to restrict the user "ortho" from the Sheet "graphs", but i've clearly got something wrong, any ideas?

Garbage after statement


LOAD * INLINE [
[ACCESS], [USERID], [PASSWORD], [OMIT]
ADMIN, PEI, 6412
USER, ORTHO, 9523, GRAPHS
]

Anonymous
Not applicable
Author

Brian,
Load inline is using square brackets, and you have the fields names in brackets too - it may cause a problem. Remove them
LOAD * INLINE [
ACCESS, USERID, PASSWORD, OMIT
ADMIN, PEI, 6412
USER, ORTHO, 9523, GRAPHS
];

And make sure you have semicoloms (";") in right places.