cdr-dev Posted July 19, 2004 Posted July 19, 2004 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
Ender Posted July 19, 2004 Posted July 19, 2004 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?
cdr-dev Posted July 19, 2004 Author Posted July 19, 2004 I am using FM 7 Developer and using just the basic FMP login.
Ender Posted July 19, 2004 Posted July 19, 2004 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
cdr-dev Posted July 19, 2004 Author Posted July 19, 2004 That is awesome! Works like a champ! Thanks Ender! Chris
Recommended Posts
This topic is 7431 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now