Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to use OMIT in section access?

I have the below section access script. I want USER1 unable to see Cost. How can I achieve it by using OMIT.

omit.PNG

Section Access;

LOAD * INLINE [

    ACCESS, USERID, PASSWORD, OMIT

    ADMIN, ADMIN, ADMIN123

    USER, USER1, USER123, COST

];

Section Application;

LOAD * INLINE [

    Cost, COST

];

excel sheet is also attached.

many Thanks

1 Solution

Accepted Solutions
Colin-Albert

You need to rename the Cost field to COST, or load the field twice from excel as Cost & COST.

The field names must be uppercase for section access.

I do not believe your one line inline load does anything, it just creates an empty table.

View solution in original post

5 Replies
fkeuroglian
Partner - Master
Partner - Master

Hi John

Maybe -

Check the selected option  “Settings” -> “Document Properties” -> “Opening” ->Strict Exclusion is checked?

try this or put and upper function in the COST field

good luck

Fernando

prieper
Master II
Master II

Did you set "Initial Datareduction ...."?

Peter

Anonymous
Not applicable
Author

HI all, I have checked both "Initial data Reduction" and "Strict exclusion" Still, Cost field is showing for user1. Fernando, what do you mean by put upper function in cost field? Excel sheet has "Cost" and I have "COST" under OMIT in section access. Then in section application, I have "mapped" "COST" to "Cost" i am hoping this is the correct way. If you see any thing can you please advise..?

Colin-Albert

You need to rename the Cost field to COST, or load the field twice from excel as Cost & COST.

The field names must be uppercase for section access.

I do not believe your one line inline load does anything, it just creates an empty table.

Anonymous
Not applicable
Author

Thanks Colin, that worked.