Notifications
Clear all
Topic starter
How do you get the current user from the ActiveX Object? We call GetCurrentLogicianPatient() but GetCurrentLogicianUser() does not seem to work,
Posted : November 11, 2016 7:45 am
In JavaScript, assuming the ActiveX object variable is called "activeXObj", you should be able to use something like this to collect various user attributes:
var userLoginName = activeXObj.eval( "{USER.LOGINNAME}" );
Or, to get the users 'real' name (for display), you can use:
var userRealName = activeXObj.eval( "{USER.REALNAME}" );
Of course, you'll need to change "activeXObj" in these examples to match the variable name you use in your code.
Posted : November 11, 2016 8:03 am