Jump to content

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

Recommended Posts

Posted

I am trying to make a script that will find and show the only record that user owns. For example, user 1234 logs in and is shown only his record, if it exists, if not he's taken to a start screen where he can create his record. On subsequent logins,1234 would be taken to his record. I want only a single record per user.

This seems like it should be fairly easy but after a couple hours I am now going in circles. Please help (btw, this needs to run under IWP). Thanks.

Posted

You can try this. Have a global text field set with the User Name on the log in script. Then have a relationship keyed from the global field to the table with the user records.

Then you can have a script like this:

If [not IsEmpty ( usertable::username )]

Go to Related Record [show only related records; from table: "usertable"; using layout: "ShowUser" (usertable)]

Else

Go to Layout ["Enter New Entry" (usertable")]

End If

or, you can use a method like this.

Posted (edited)

Hi,

I'm having exactly the same problem. The solution seemed good at the first, but what if many users log at the same time? What could be a good solution?

Thank you

Edited by Guest

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