Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
vlad_komarov
Valued Contributor III

Detect the user type from QVW

Hello,

Is it possible to detect from QVW (via macro, for example) if the application is being accessed by User with Named, Doc, or Session's licenses?

I would appreciate any suggestions/recomendations.

Best regards,

Vladimir

Tags (3)
1 Solution

Accepted Solutions
Employee
Employee

Re: Detect the user type from QVW

i BELIEVE you would have to include the user and CAL assignment as a table in your data model as a data island.

The table would list all the users with a doc cal  and named user cal.

If their is a named user cal for the current user (use osuser() or qvuser()  to do the lookup) then you know its named. If not then check if the document and the user has a doc cal assigned . if yes its a doc cal. 

if none of the above its a session.

this does not take into account if you have usage cals though.

That is the order the licenses work so it would work if you can export your cal assignments to a format readable by qv and just load them in the load script.

2 Replies
Employee
Employee

Re: Detect the user type from QVW

i BELIEVE you would have to include the user and CAL assignment as a table in your data model as a data island.

The table would list all the users with a doc cal  and named user cal.

If their is a named user cal for the current user (use osuser() or qvuser()  to do the lookup) then you know its named. If not then check if the document and the user has a doc cal assigned . if yes its a doc cal. 

if none of the above its a session.

this does not take into account if you have usage cals though.

That is the order the licenses work so it would work if you can export your cal assignments to a format readable by qv and just load them in the load script.

vlad_komarov
Valued Contributor III

Re: Detect the user type from QVW

Jonathan,

Thanks! I was hoping for some system-level solution, but the one you are proposing is straight-forward enough to implement as well.

Thank you for suggestion.

Regards,

Vladimir

Community Browser