Newbies guido Posted April 2, 2004 Newbies Posted April 2, 2004 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
Ender Posted April 3, 2004 Posted April 3, 2004 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.
CobaltSky Posted April 3, 2004 Posted April 3, 2004 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.
Newbies guido Posted April 3, 2004 Author Newbies Posted April 3, 2004 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
CobaltSky Posted April 3, 2004 Posted April 3, 2004 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.
Recommended Posts
This topic is 7542 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