March 1, 200718 yr 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?
March 2, 200718 yr 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
March 6, 200718 yr Author The FMP 8.5 Scripts Reference found on Filemaker's website says this. But, as you mention, it apparently isn't true.
March 6, 200718 yr 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
March 7, 200718 yr 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 March 7, 200718 yr by Guest added 8.5 ref
March 7, 200718 yr 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 March 7, 200718 yr by Guest
March 7, 200718 yr 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