Here is a section out of GoldMine Premium - The Definitive Guide
The remaining four fields add information about the user that may also be used in document templates, e-mail templates as well as reports. This information is stored in the UserID.ini under the section heading of [User_Var]. We'll discuss more on this shortly, and there are GoldMine macros specifically created to utilize this data ( see Appendix B ). It is here, through this GUI, that the user should add their Title:, Department:, and Fax:. Once this has been accomplished, these user variables would, hence forth, be available for the document templates, and e-mail templates, as well as reports. The UserID.ini, at least the section populated by this dialog form tab, might look like the section shown here:
Title = Owner
Dept = Support
Phone = (978)342-3333
Now you won't be able to select other UserID's information from your E-mail Templates unless you are logged in as them, but they will able to inset their variables using the same templates.
Thanks for your reply. I know you can easily pull the logged-in user's information using these variables. What I need is a way to pull the information from someone else's userID; the <<cal->userID>> specifically. I am able to extract the other user's full name using user2full(cal->userID) so I am hoping to find a way to pull the phone # for that userID. My thinking is, that if I am able to pull the full name using the UserID, I should also be able to pull other details?
Update: I found this in Goldmine admin guide:
The &User_Var macro allows GoldMine users to store specific data that can be retrieved later into applications that are linked via DDE with GoldMine. This macro can be defined in the [user_var] section of both the GM.INI and the username.INI of GoldMine.
Usage Syntax: &User_Var.<variable name>.<Goldmine username>
where <variable name> is a descriptive name of the macro and <Goldmine username> assigns a defined value to a specific GoldMine user. <Goldmine username> is optional. as Goldmine will assign these values to the current Goldmine user.
I tried &User_Var.Phone.[a static username], and it worked and correctly populated that phone number. But I can't get cal->userid to work in its place. I tried:
Did not work but thanks for your guess!
1 of 1 people found this helpful