Active user to be passed via Program links
Active user to be passed via Program links
Guys I am working on a small project where I need to know who is the logged in user in open dental. I checked the program link documentation & did not see a user variable. Please guide me how a user can be passed via program link.
Re: Active user to be passed via Program links
Depends on the hook you're trying to use, but typically one of the parameters passed in is CurPat. If it's not you can usually get it from the static call to FormOpenDental.CurPatNum
Re: Active user to be passed via Program links
If this is for the optional command line arguments of a Program Link, [UserName] will pass the username of the user currently logged in to Open Dental. If you are developing a plugin, you can also access the currently logged in user via OpenDentBusiness.Security.CurUser.
Re: Active user to be passed via Program links
Thanks for [UserName] suggestion, but when I tried with (somePrefix_[patNum]_[provNum]_[UserName] ) only [UserName] did not work, so can you help me with other suggestion.
Re: Active user to be passed via Program links
Sorry, I did not verify when [UserName] was added as a command line argument option. It is only in beta (21.4).
Re: Active user to be passed via Program links
Thanks for letting me know about this change, what other user details than [UserName], added in the 21.4(beta). Can you help me with link or details to look for the updated ones.
Re: Active user to be passed via Program links
[UserName] was the only one added in 21.4. All other command line argument replacement options can be found here: https://www.opendental.com/manual/progr ... tfile.html