Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I have a qvw file with section access. The purpose is that, I want to restrict data visibility based on the attached file(just an example). Admin can see all country data, and users can only see their country data.
When I reload the file on desktop manually which is placed inside Qlikview\SourceDocument folder it runs fine, and then I use to place the qvw inside Qlikview\documents folder so that users can access via Access point. By following this process it works.
But, I want to be a scheduled run on the server, and I have created a task in QVMC which run fine. The document is also distributed to Qlikview\documents folder.
Now when i try to access the qvw using access point I get error msg: Failed to open the document, you might not have permission.
Why is this not working in scheduled run ?
below is my code for section access.
-----------------------------------------------------------------
Star is '*';
Section Access;
User:
LOAD LOGIN as NTNAME,
ACCESS,
COUNTRY_CD
FROM[QlikviewUsers.xlsx]
(ooxml, embedded labels, table is Sheet1);
User:
CONCATENATE LOAD * INLINE [
NTNAME, ACCESS, COUNTRY_CD
QV_ADMIN, ADMIN, *
];
Section Application;
User_Visiblity:
LOAD LOGIN as NTNAME,
PROFILE,
COUNTRY_CD,
COUNTRY_NAME
FROM[QlikviewUsers.xlsx]
(ooxml, embedded labels, table is Sheet1);
User_Visiblity:
CONCATENATE LOAD * INLINE [
NTNAME, PROFILE, COUNTRY_CD, COUNTRY_NAME
QV_ADMIN, Admin, ALL, *
];
----------------------------------------------------------------------------
I have also added QV_ADMIN user in the list through which all our Qlikview services runs on the server. I came to know about this somehow from the community and google.
What else I'm missing here or I need to do some other way ? Let me know if any more detail is required.
Any help is much appreciated.
Thanks,
Roushan
I'm not sure I agree, when 'Star is * ' is explicitly specified.
I think you should remove the '' around the * (star), making it simply:
Star is *;
I'm not sure I understand what it is you do not agree with. I certainly could have put it more clearly, sorry.
Peter
in setting side of qlikview
for document properties-->security tab-->check on admin override security and
document properties-->opening tab -->check on initial data reduction based on section access
Could you please provide an example code, how to work with ?
I tried UPPER() function, but no luck.
I also tried Star is * instead of Star is '*', this too didn't work.
Settings have been taken care...still not working
you should remove single quotes surrounding *,
Star is *;
Yes, I used the same
Star is *;
Can you try this?
Reload the Source Document,then save it.
Then run the task manually on the QMC, then it will distribute your application to the other users.
Now, try to access the document with differenct login credentials.
Regards
Siva Dandu
I can't provide example code, I'll need an example model for that from you.
But the changes are simple.
There are multiple solutions for this problem, but they differ mostly because of particular details in your application. And we have no information about that.
Best,
Peter
.
And by the way, you may ask yourself how you can fill User_Visibility when the facts haven't even been loaded yet... Section Access doesn't have to be at the front of your script, you can put it at the end without any problems.
Peter