Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

agigliotti
Honored Contributor II

How to use section access and star is

Hello,

I need to apply no reduction data for a user.

I tried to do in the same way I did in QlikView using start is statement in section application.

Example:

section access;

USER     REDUCTION

A               1

B               2

C               3

section application;

Start is *;

REDUCTION     FIELD

1                        T1

1                        T2

2                        T3

3                        *

The user C should see all values of FIELD in data cloud.

But this is not working in QLIK SENSE.

How can I achieve it ?

Many thanks.

Andrea

6 Replies
darkhorse
Valued Contributor

Re: How to use section access and star is

Hello,

Section Access syntax has been modified in Qlik Sense. Please check help below.

https://help.qlik.com/sense/1.1/en-us/online/#../Subsystems/Hub/Content/Scripting/Security/SectionsI...

BR

Serhan

agigliotti
Honored Contributor II

Re: How to use section access and star is

I know but I'm asking how to do the same thing I did with QlikView.

darkhorse
Valued Contributor

Re: How to use section access and star is

Hello,

Are you trying exactly with the script you sent above?

If yes, there are a few issues with it.

1. You need ACCESS field specified.

2. In order to filter the users, you need USERID or GROUP field.

3. In order to star to work, you need all values already listed in REDUCTION field inside of Section Access block. STAR IS value list is composed of only the values listed in the section access area; it does not check the original list of values in data.

Code below works fine.

Sample USERID Value: 'DOMAIN\USER';

ACCESS field value: ADMIN or USER

//Code Starts here

section access;

LOAD

    "ACCESS",

    "USERID",

    REDUCTION

FROM [lib://Desktop/test.xlsx]

(ooxml, embedded labels, table is Sheet1);

star is '*';

section application;

TEST:

LOAD

    REDUCTION,

    VALUE

FROM [lib://Desktop/test.xlsx]

(ooxml, embedded labels, table is Sheet2);

//Code ends here

BR

Serhan

agigliotti
Honored Contributor II

Re: How to use section access and star is

Hi,

No I used also ACCESS and USERID fields in section access.

So it's different from qlikview, where star in section application means all field values in data cloud and not in section access.

Are you sure is this the expected behaviour ?

darkhorse
Valued Contributor

Re: How to use section access and star is

Hello Andrea,

It is same behaviour in QlikView as well. If you don't include all values in section access, it does not authorize the star users properly as well.

BR

Serhan

agigliotti
Honored Contributor II

Re: How to use section access and star is

What you saying is the expected behaviour using star symbol in section access.