2 Replies Latest reply: Oct 9, 2014 2:39 PM by Vladimir Komarov RSS

    Detect the user type from QVW

    Vladimir Komarov



      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,


        • Re: Detect the user type from QVW
          Jonathan Poole

          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.