Jump to content
Server Maintenance This Week. ×

Creating a user Log


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

Recommended Posts

In an open script, create a record in a Log table for that user's login; AccountName, LoginTimeStamp. Your Close script could create a record for recording the users's logout.

Link to comment
Share on other sites

It's in the Logs folder of the root level FileMaker Server executable. On Windows that's in the programs directory on C. On Macintosh it's in the root level Library. Drill down thru the FileMaker Server directory until you find it.

HTH

Steven

Link to comment
Share on other sites

You'll need a Users table that has a field with their Account Name in it.

Then, in your Open Script (the script that runs when the file opens), you:

1. Go to a layout based on a Users TO.

2. Enter Find Mode.

3. Set Users::AccountName to Get (AccountName)

4. Perform Find.

Now you are on the User's record that just logged in. Create a new record in your Log table:

5. Set $$UserID to Users::primaryKeyID

6. Go to Login Table

7. Create New Record

8. Set Login::UserID to $$UserID

9. Set LoggedIn to Get (HostTimeStamp)

Close does the same thing, but sets LoggedOut.

Link to comment
Share on other sites

This topic is 5799 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.