Script Steps Reference
Table Of Contents
- Script steps reference (alphabetical list)
- About script steps
- Control script steps
- Navigation script steps
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Device
- Insert From Index
- Insert From Last Visited
- Insert From URL
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert Audio/Video
- Insert PDF
- Insert File
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Truncate Table
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Show Custom Dialog
- Allow Formatting Bar
- Refresh Object
- Beep
- Speak (OS X)
- Dial Phone
- Install Plug-In File
- Install Menu Set
- Set Web Viewer
- Open URL
- Send Mail
- AVPlayer Play
- AVPlayer Set Playback State
- AVPlayer Set Options
- Refresh Portal
- Send DDE Execute (Windows)
- Perform AppleScript (OS X)
- Execute SQL
- Send Event
- Comment
- Flush Cache to Disk
- Exit Application
- Get Directory
- Enable Touch Keyboard
- Glossary
Accounts script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 204
Example 1
Adds a new user account with data entry only privileges. Requires you to change the password the
next time you log in to the account.
Add Account [Account Name: "User"; Password: "1234"; Privilege Set: "[Data
Entry Only]"; Expire password]
Example 2
Adds a new account with read-only privileges using the name and password in the custom dialog
box.
Show Custom Dialog ["Do you want to add a new account?"; Accounts::Name;
Accounts::Password]
If [Get ( LastMessageChoice ) = 1]
Add Account [Account Name: Accounts::Name; Password:
Accounts::Password; Privilege Set: "[Read-Only Access]"]
End If
Example 3
Adds a new data entry only account unless the current user has read-only privileges. Uses the
current user's name for the new account name.
If [Get ( AccountPrivilegeSetName ) ≠ "[Read-Only Access]"]
Add Account [Account Name: Get ( UserName ); Password: "1234";
Privilege Set: "[Data Entry Only]"; Expire password]
Else
Show Custom Dialog ["You do not have enough privileges to add an
account."]
End If