July 19, 200421 yr I am having a dull moment . I can't figure out a way to display the current user name when a user logs into the database. What I have in the upper lefthand corner of the layout is something like: Welcome! John Doe What is the syntax to create for just doing a simple display of the current user that is logged in? Thanks for your help in advance. Chris
July 19, 200421 yr Chris, "Current user name" means different things in different versions. What version of FMP are you using? Do you have a custom login system, or are you using the built-in FMP login? Or do you just want to see the computer's owner name?
July 19, 200421 yr You should have a global CurrentUserName field that you set at login. To display it, use a merge field in a text block: Welcome <<CurrentUserName>>! The field gets set when you login with this script step: Set Field [ CurrentUserName ; Get(AccountName) ] //gets the account name that was used to login or Set Field [ CurrentUserName ; Get(UserName) ] //gets the name of the computer's owner
Create an account or sign in to comment