Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

login script, show specific record

Featured Replies

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.

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.

  • Author

Thanks. Your suggestion to use the global text field worked great!

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

Since globally stored fields are tied to the session, there's no problem.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.