Question: I'm trying to run an IF statement on the User Title, and if the Title
isn't met the user will have certain options disabled. How can I find
the value of a user's Title in SalesLogix?
Answer: You will find the Title stored in the userinfo table. By including the
script 'System:SLX Database Support' in whatever you are using you can
retrieve the title with the following line:
strTitle = GetField("Title","UserInfo","
userid = '" & Application.BasicFunctions.CurrentUserID & "'") & ""
You can also retrieve it from the User in the Users collection:
title = Application.Users(Application.BasicFunctions.CurrentUserID).Title