Jump to content

Print "User Name" on FM pro7 output


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

Recommended Posts

  • 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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 6509 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
 Share

×
×
  • Create New...

Important Information

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