Skip to main content
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: 
MuraliPrasath
Creator III
Creator III

Section Access Query.

Hi QV Team,

I've to appy Section Access on my Application based on NT Login.

I've created a hidden script and used following script.

************************************

Section Access;

LOAD * INLINE [

    ACCESS, NTNAME

    USER, TXT/AAndrade

    USER, TIC/AParonica

    USER, TXT/gbagby

    ADMIN, TXT/sbaggiano

    ADMIN, TXT/jbarrett

   ];

Section Application;

LOAD ACCESS,

     NTNAME,

     EmailID,

     Sales_Representative

    

FROM

[..\..\Data\FlatFiles\ABC_SectionAccess_userextract.xls]

(biff, embedded labels, table is ABC_SectionAccess_userextra$);

***************************************

After doing this, i can't able to open the document anymore.

It says "Access denied".

My requirement is to reduce the fields based on the user login(NT Login)

Please some one suggest me some thing.

11 Replies
PrashantSangle

Hi,

try NTNAME list in capital latter.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
qlikviewwizard
Master II
Master II

Hi murali69

Section works on case sensitive and should use capital letters.

jonathandienst
Partner - Champion III
Partner - Champion III

Section Access;

LOAD ACCESS,

  Upper(NTNAME) As NTNAME

INLINE [

    ACCESS, NTNAME

    USER, TXT/AAndrade

    USER, TIC/AParonica

    USER, TXT/gbagby

    ADMIN, TXT/sbaggiano

    ADMIN, TXT/jbarrett

   ];

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sujeetsingh
Master III
Master III

MuraliPrasath
Creator III
Creator III
Author

Hi,

I followed this method but still I'm facing the same issue. After following this I'm unable to open the document.

" Access Denied to this document".

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

PrashantSangle

Hi,

You are login with which userName???

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
qlikviewwizard
Master II
Master II

Did your NT USERNAME details added into the script?

We should add.

Are you opening this in personal edition?

If yes,

Did you lease the license from the server?

Not applicable

One trick that might help you to find a solution could be to create a text-box and add =osuser() to make sure the username that QV fetches looks the same as the ones in your list.