Re-Login

Signs in again to an open file with a different FileMaker file account, external server account, or the Guest account.

Options 

  • With dialog controls whether the Open <filename> dialog box displays when the script step is performed. This dialog box requires the user to manually enter an account and password (or edit information already displayed in the dialog box) to open a file. When With dialog is set to Off, FileMaker Pro uses the account and password information that is stored with the script step, or generates information from calculations when the script step is performed.

  • For the FileMaker data source to sign in to, Current File selects the file that the current script is in. To specify an external FileMaker data source, choose its name from the list or choose Add FileMaker Data Source.

  • Account Name allows you to specify the name of the account to be authenticated.

  • Password allows you to specify the password for this account.

Compatibility 

Product Supported
FileMaker Pro Yes
FileMaker Go Yes
FileMaker WebDirect Partial
FileMaker Server Partial
FileMaker Cloud No
FileMaker Data API Partial
Custom Web Publishing Partial

Originated in version 

7.0

Description 

Privileges assigned to the new account take effect immediately, including access to tables, records, layouts, scripts, and value lists.

Notes 

  • Specifying Account Name and Password works only with FileMaker file accounts and external server accounts that don't use AD FS.

  • If the specified FileMaker data source file can't be found, this script step returns error code 100 ("File is missing"). Specifying an ODBC data source isn't supported.

  • When the file is hosted by FileMaker Cloud, this script step returns error code 3 ("Command is unavailable").

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

  • The With dialog option works differently depending on where the script runs:

    • Server-side scripts, the FileMaker Data API, and Custom Web Publishing run this script step as if this option is set to Off.

    • In FileMaker WebDirect, setting this option to On displays the dialog box. However, if you store the account and password in the script step, this information is not displayed in the dialog box.

Example 1 

Prompts the current user to re-login after deleting the specified account.

Note  Because of the Delete Account step, users must have full access privileges to run this script.

Copy
Delete Account [ Account Name: "User" ]
Re-Login [ With dialog: On ; Current File ]

Example 2 

Uses stored credentials to re-authenticate to an external FileMaker data source named Contacts without displaying a dialog box.

Copy
Re-Login [ With dialog: Off ; Account Name: "ReadOnly" ; Password: "••••••••" ; "Contacts" ]