Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Section Access reduction with Binary Load

Hi, My situation is like this. I have a data extract document that runs on the client site and gets ftped into our local server which is binary loaded into the application qvw. Now i want to implement the Section Access Reduction in this application document. The original qvw doesn't have any section access.

BINARY a.qvw; //Loads the customer data extracted on their server.

SECTION ACCESS;

Directory;

LOAD ACCESS,

     NTNAME,

     XX

    FROM

Security\ControlSheet-POS.xlsx

(ooxml, embedded labels, table is Sheet1);

load * inline

[

XX, Domain

Domain1, Domain1

Domain2, Domain2

Domain3, Domain3

];

Now the excel file is something like this.

ACCESSNTNAMEXX
ADMINUser1Domain1

With this data, I login as User1 and expect to see only the data for Domain1, but I get to see all the data. Whatever I have done is not working. Domain is a column name in the original data model in a.qvw file.

Please help.

Thanks,

Ram

1 Solution

Accepted Solutions
tresesco
MVP
MVP

PFA.

It should normally work if all the basics (1. Initial data Reduction Based on Section Access - is checked  2. All values under section access are being taken in capital when INLINE load) are set properly.

credentials.

admin - A, admin

user - U, user

View solution in original post

13 Replies
Not applicable
Author

sorry, this hasn't helped. Mine is not a case of SA in 2 documents at all.

tresesco
MVP
MVP

PFA.

It should normally work if all the basics (1. Initial data Reduction Based on Section Access - is checked  2. All values under section access are being taken in capital when INLINE load) are set properly.

credentials.

admin - A, admin

user - U, user

Not applicable
Author

sorry what is the user id password?

tresesco
MVP
MVP

credentials.(userid/pass)

admin - A, admin

user - U, user

Not applicable
Author

Your example seems to be correct. When I try to follow that, my document gets locked. It says failed to open document. It looks like it isn't working for me.

tresesco
MVP
MVP

please share your sample app.

Not applicable
Author

@TRESESCO

This is the code.

BINARY InsightData.qvw; //Loads the customer data extracted on their server.

SECTION ACCESS;

Directory;

LOAD ACCESS,

     NTNAME,

     [Store Name] as STORE_NAME

    FROM

Security\ControlSheet-POS.xlsx

(ooxml, embedded labels, table is Sheet1);

Section Application;

Directory;

LOAD [Store Name] as STORE_NAME

resident STORE;

Contents of the excel File:

ACCESSNTNAMEStore Name
ADMINDOMAIN1\USER1STORE1
ADMINDOMAIN1\USER2STORE2
ADMINDOMAIN1\USER3STORE3
ADMINDOMAIN1\USER4STORE4

Thought it would be a simple implementation but has taken my whole day without any success. Please help.

Thanks,

Ram

tresesco
MVP
MVP

For NTNAME, you have to give the original information in the excel file. It actually takes the windows user and domain name while trying to open the document. For example, if your windows ID is Ram and your domain (Windows) is Organisation1, you have to put the values in the excel like :

ACCESSNTNAMEStore Name
ADMINORGANIZATION1\RAMSTORE1
ADMINORGANIZATION1\PITTERSTORE2
ADMINORGANIZATION1\USER3STORE3
ADMINORGANIZATION1\USER4STORE4

Is that being done correctly?