Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I would like to get the number of records a user has made, so this can be displayed, then I would like to create a function to add 1 to this number so that the next record created would be individually numbered.

Then when the user logs in they will see, a total of the records they have made and then when they click back and forth they will see the records numbered...

Any help given most greatfuly appreciated,

Thanks...

Posted

If you have a UserCreatedID in each record, then you can just count them. Do you have a user table, each with a unique UserID?

You could display "their" records in a portal on the User Form view using a relationship by UserID=UserCreatedI.

Posted

Yes I do have a user field with a unique ID.

Do you know is it possible to create a list of al users ?

Since you ahve a create user button surely it is possible to view all users ?

Posted

Might I suggest a find when the user logs in as per attached file?

Three users:

Account: Admin

User: Admin

Pass: Admin

Account: Gary

User: Gary

Pass: Gary

Account: John

User: John

Pass: John

You can see the shortcomings of not using autoincrementing serial numbers in the post: http://www.fmforums.com/forum/showtopic.php?tid/191695/post/273995/#273995

MyFile.zip

Posted

You've provided the next step in the process, thanks.

Also, the UserCreatedID is an AutoEntered calc field equal to $$CurrentUserID that is set in an Open Script.

Posted

Why not use a relationship from the user table to 'find' the records?

Also, the UserCreatedID is an AutoEntered calc field equal to $$CurrentUserID that is set in an Open Script.

What's the point in setting a variable to something that is always available as a function?

Posted (edited)

How is the UserCreatedID available as a function, comment?

I don't use Created User name entry option, if that's what your referring to. Names change.

I was trying to build functionality a bit at a time in this post, to avoid totally overwhelming the OP. I was going to suggest a portal of records on the User Form with a gtrr button, or a gtrr button that takes the user to a list view. As usual, we're guessing here bcs we don't have much detail. All they asked for was a count.

Edited by Guest
elaborated
Posted

How is the UserCreatedID available as a function, comment?

It's not. I'm afraid I misread your post and thought you were referring to account name - since that seems to me the natural choice. So the question is why use userID instead.

Posted

Because Account Names can change, too. I do use Get(AccountName) to find in the Users table on startup and then store the $$UserID.

Posted

Account Names can change, too.

Perhaps, but how often does that happen? I'd prefer to use the straightforward method for everyday use, and deal with the change if and when it comes.

Posted

I politely disagree. Women marry, for example, and wish their account name changed, perhaps. If a critical feature of the system is to see how many records this user created (telemarketer perhaps) then relying on account name is undependable.

Posted (edited)

LOL, what year do you have? I'd sooner believe a woman wanting her account name changed because she got divorced...

Anyway, what I am trying to say is this: changing an account name is not an everyday event. It requires either a skillful administrator, or a carefully prepared script. Both could change the account name on existing records on the same occasion*. I don't see why everyday operations should be made more complex in preparation for this eventuality.

---

(*) or add the previous account name to a list in users table

Edited by Guest

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