Jump 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.

Featured Replies

Hi, I'm trying to use the relogin script with a custom dialog. I have 2 global fields that hold a username and password which the relogin script uses. In the documentation, it says that a person can try to login 5 times unless error capture is enabled.

As far as I can tell in my tests, I can try to login as many times as my heart fancies. Additionally, if the login fails, it just kicks me out of the script.

What do I have to do to get the custom dialog screen to come back up, some sort of wacky loop? Is there a way for the relogin script to report that it failed so it'll know when to loop? How do I get it to deny a user if they've failed to login 5 times?

What documentation says this? AFAIK when using a scripted process there is no such limit absent some sort of internal counter to the script itself.

Steven

  • Author

The FMP 8.5 Scripts Reference found on Filemaker's website says this. But, as you mention, it apparently isn't true.

he FMP 8.5 Scripts Reference found on Filemaker's website says this. But, as you mention, it apparently isn't true.

Can you give us an exact URL so I can get this quashed?

Steven

Steven--

http://www.filemaker.com/downloads/documentation/fm8_script_steps_reference.pdf

and:

http://www.filemaker.com/downloads/pdf/fmp85_scripts_reference.pdf

Page 113 for v.8 and 119 for v. 8.5 has the following:

"Notes

• You do not need full access privileges to perform this script step. Users with any level

of access can use this script step to re-login to the database.

• Users get five attempts to enter their account and password, unless the Set Error Capture script step is enabled.

• If the Set Error Capture script step is enabled, users get a single attempt to enter their

account and password."

HTH,

David

Edited by Guest
added 8.5 ref

Yeah, it might be a lie, but if it wasn't...

Set Error Capture[On]

Loop

Re-Login[]

Exit Loop If[ Get(LastError) = 0]

End Loop

Edited by Guest

Well actually there is some truth to this. The problem here is imprecise wording. With Error Capture off the script gives up after 5 tries. You can re-run the script. The user is not blocked from trying the relog which is what I thought the report meant initially.

OTOH, if the Error Capture is set to ON, the script gives up after one try. It can be run again.

I am going to see if I can get this clarified.

Steven

Create an account or sign in to comment

Important Information

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

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.