Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
vlad_komarov
Partner - Specialist III
Partner - Specialist 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

1 Solution

Accepted Solutions
JonnyPoole
Former Employee
Former Employee

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.

View solution in original post

2 Replies
JonnyPoole
Former Employee
Former Employee

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
Partner - Specialist III
Partner - Specialist III
Author

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