Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Print "User Name" on FM pro7 output

Featured Replies

  • Newbies

I'm a brand new user of FM Pro 7 and enjoying the experience.

Can anyone please tell me how I can show the logged in User Name on the Print output of records from my database?

I see it as a function - but I'm obviously missing the plot because I can't get it to print!

Thanks in anticipation.

FileMaker Version: 7

Platform: Windows XP

You should be able to define a global text field Current User that gets set by a script when you login:

Set Field [ Current User, Get ( UserName ) ]

Then insert the Current User field on the layout. Make sure in Sliding/Printing you don't have the field set to not print.

FWIW, Get(UserName) does not return the name of the currently logged-in user, but instead returns the name specified in the general tab of the preferences dialog on the current workstation. This identifies the workstation rather than the user.

In version 7, the new function Get(AccountName) is probably more appropriate, as it would typically be associated with an individual user. wink.gif

  • Author
  • Newbies

Thanks for the feedback guys.

Ray is quite right Get(UserName) does return the General Tab information.

I've tried

"Set Field [Database::FieldName; Get(AccountName)

and get a result IF click in the field

And even though I put it in File/File Options to perform script at startup

I still have to click in the field to return the result.

OK I am a complete novice and sorry to pick your brains again - but if you have any suggestions, I'd be grateful.

Regards

Dave

Hi guido,

I suggest that you place a 'Commit Records/Requests' script step immediately after the Set Field[ ] step, and see if that improves matters.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.