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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Section Access Help

Hi All,

I have section access implemented in the application for a particular sheet in the application. After reloading the application, correct data is displayed on the dashboard. But when I save and reopen the application again, the data displayed only on that particular tab is halved. Can someone please help me

15 Replies
Not applicable
Author

Can you please help me with the syntax. Where should I be writing NOREDUCTION?

Not applicable
Author

Would it work for multiple reducing fields?

hic
Former Employee
Former Employee

One way to do it is

Authorization:
Load
ACCESS,
NTNAME,
If(ACCESS='ADMIN', 'NOREDUCTION', REDUCTION) as REDUCTION
;
Load
Applymap('AdminUsers', Upper(NTNAME), 'USER') as ACCESS,
Upper(NTNAME) as NTNAME,
Upper(REDUCTION) as REDUCTION
From ... 

For multiple reducing fields, you should read Data Reduction Using Multiple Fields.

HIC

Not applicable
Author

In the statement If(ACCESS='ADMIN', 'NOREDUCTION', REDUCTION) as REDUCTION
is Reduction a field?

Not applicable
Author

Hi Henric,

I am using the below script in section access.

UserEntitlementFinal:
NOCONCATENATE LOAD
ACCESS
,
NTNAME
,
if(IsNull(AB) or Len(Trim(AB))>0,'',AB) as AB
,
if(IsNull(CD) or Len(Trim(CD))>0,'',CD) as CD
,
RESIDENT UserEntitlement;
DROP TABLE UserEntitlement;

AB and CD are reducing fields.

Data is displayed properly in this case. But when I open the document with USER, the document fails to open. When I uncheck Strict Exclusion, it works fine. Is it correct?

hic
Former Employee
Former Employee

"REDUCTION" is the field that you want to use as reducing field, yes.

You need to have Strict Exclusion on. If it doesn't open, then it means that there is no combination of AB and CD that the user has the right to see.

I would advice against using multiple reducing fields, of the reasons that I explain in Data Reduction Using Multiple Fields.

HIC