Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7431 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am having a dull moment confused.gif. 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

Posted

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?

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.