Get functions monitor errors in scripts, or capture information about file status or actions being performed.
Many Get functions return information that changes on a regular basis. For example, when the Get(CurrentTime) function is placed in a stored calculation field, the time will update only when a new record is created. If the calculation has other fields in it but the calculation result still returns the current time, the stored calculation result will update only when those other fields have been modified in the current record. If either of these calculations are unstored, the time will update as needed. For performance reasons, making a calculation field unstored is not always the best idea. Get functions are best used in a script where the status information from a Get function is up to date at the moment that the calculation is run.
This function | Returns |
A list of keywords, based on the account used to open the file, for the enabled extended privileges. | |
The current account's group name. | |
The authenticated account name being used by the file's current user. | |
The privilege set name being used by the account used to open the file. | |
The current account's authentication type. | |
The contents of the field that has the focus. | |
The name of the field that has the focus. | |
The name of the table occurrence that contains the field that has the focus. | |
The name of the layout object that has the focus in the calculation's current window. | |
A number for the keyboard modifier keys being pressed. | |
A number representing the portal row that has the focus. | |
A number representing the record that has focus in the current found set. | |
A number representing the repetition that has the focus in a repeating field. | |
A number representing how many characters are selected. | |
A number representing the starting character of the selected text. | |
1 (true) if the Allow User Abort script step is on; otherwise, returns 0 (false). | |
1 (true) if the formatting bar is allowed to be visible; otherwise, returns 0 (false). | |
The current application architecture. | |
Text representing the current application language. | |
The FileMaker client's product name and version. | |
A number representing the repetition of the calculation field being calculated. | |
The name of the current file's host, and the certificate authority that issued the SSL certificate used to secure the connection. | |
A number representing the security state of the network connection for the current file. | |
The current date according to the system calendar. | |
A list of keywords, based on the account used to evaluate this calculation, for the enabled extended privileges. | |
The host's current date and time (to the nearest second) according to the system clock. | |
The name of the privilege set being used to evaluate this calculation in the file. | |
The current time (to the nearest second) according to the system clock. | |
The current date and time (to the nearest second) according to the system clock. | |
The current time in Coordinated Universal Time (UTC) to the nearest millisecond. | |
The name of the active custom menu set. | |
The path to the desktop folder for the current user. | |
A number representing the type of computer or mobile device running the FileMaker product. | |
The path to the Documents folder for the current user. | |
A list of all files and folders in the Documents folder returned by the Get(DocumentsPath) function. | |
A value representing the file's current encryption state. | |
1 (true) if the Set Error Capture script step is on; otherwise, returns 0 (false). | |
Returns the path to the folder of the currently running copy of a FileMaker product. | |
The name of the currently active file, without the filename extension. | |
The full path of the location of the currently active file. | |
The size, in bytes, of the currently active file. | |
The number of records in the current found set. | |
The current high contrast default color scheme name. | |
1 (true) if high contrast is available and active; otherwise, returns 0 (false). | |
The FileMaker host's product name and version. | |
The IP address of the host computer for the current file. | |
The registered name of the computer that is hosting the file. | |
The name, version number, and enabled state of installed plug-ins. | |
A number for the error that occurred in the execution of the most recently executed script step. | |
Text about errors external to FileMaker that are returned by Get(LastError). | |
A number corresponding to the button clicked in an alert message displayed by the Show Custom Dialog script step. | |
A number based on record access privileges available through the current layout. | |
The total number of layouts in the file. | |
The name of the layout currently being displayed. | |
The number of the layout (specified in the Manage Layouts dialog box) currently displayed. | |
The name of the table occurrence displaying records in the current layout. | |
A number representing the currently active file view. | |
A number representing the current menu bar state. | |
A list of fields that have been modified in the current record of the current table. | |
A number representing the level of sharing for the file using FileMaker Network. | |
The name of the network protocol (TCP/IP) that FileMaker is using on this machine. | |
A number representing the type of network being used to access the current file. | |
The file ID and path of each open data file. | |
A number representing the current page being printed or previewed. | |
Text representing a unique identifier of the computer or device running FileMaker. | |
The path to the preferences and default options folder for the current user. | |
Text identifying the default printer name. | |
The text that is stored in the quick find box. | |
A number representing the current record's access privileges, assigned through the Custom Record Privileges dialog box. | |
The unique ID number of the current record. | |
The total number of times changes to the current record have been committed. | |
A number representing a record's position in the current found set. | |
The total number of open records in the current found set that haven't been saved. | |
A number representing the state of the current record. | |
Events that caused the script specified in the Configure Region Monitor Script script step to run. | |
The total number of find requests defined for the current table. | |
1 (true) if Omit is selected in the current find request; otherwise, returns 0 (false). | |
The number of bits needed to represent the color or shade of gray of a pixel on the main screen. | |
The height, in points, of the screen in which the window of the current file is open. | |
The scale factor of the screen in which the current file is open. | |
The width, in points, of the screen in which the window of the current file is open. | |
1 (true) if animations are enabled for the current script; otherwise, returns 0 (false). | |
The name of the script that is currently running or is paused. | |
The script parameter passed into the current script. | |
The script result from a performed sub-script. | |
A value representing the current sort state. | |
A number representing the current status toolbar state. | |
The drive letter (Windows) or volume name (macOS) where the running operating system is located. | |
A list of the IP addresses of all computers connected to an active NIC (Network Interface Controller) card. | |
The language currently set on the current system. | |
The hardware addresses of all NIC (Network Interface Controller) cards connected to the computer. | |
A number representing the current platform. | |
The version of the current operating system. | |
Returns the path to the current FileMaker temporary folder. | |
1 (true) if the text ruler is displayed; otherwise, returns 0 (false). | |
The total number of records in the current table. | |
1 (true) if the touch keyboard is set to display automatically when needed; otherwise, returns 0 (false). | |
The index and object name of the panel to switch from when the OnPanelSwitch script trigger is activated. | |
A number representing the event that activated an OnExternalCommandReceived script trigger. | |
Details about the gesture that activated an OnGestureTap script trigger. | |
The characters that activated an OnObjectKeystroke script trigger or OnLayoutKeystroke script trigger. | |
The state of the keyboard modifier keys when an OnObjectKeystroke script trigger or OnLayoutKeystroke script trigger was activated. | |
The index and the object name of the panel to switch to when the OnPanelSwitch script trigger is activated. | |
The number of clients currently accessing the file. | |
The name of the FileMaker user, as specified in the General tab of the Preferences dialog box. | |
1 (true) if Use System Formats in the Format menu is on; otherwise, returns 0 (false). | |
Text representing a Universally Unique Identifier (UUID). | |
A number representing a large Universally Unique Identifier (UUID) value. | |
The height, in points, of the window content area. | |
The width, in points, of the window content area. | |
The height, in points, of the desktop space. | |
The width, in points, of the desktop space. | |
The height, in points, of the window on which the script is acting. | |
The horizontal distance, in points, of the outer edge of the window on which the script is acting, relative to the leftmost edge of the screen. | |
A number representing the mode the FileMaker product is in when the function is evaluated. | |
The name of the window on which the script is acting. | |
A value representing the orientation of the window on which the script is acting. | |
The style of the window on which the script is acting. | |
The vertical distance, in points, of the outer edge of the window on which the script is acting, relative to the top edge of the screen in Windows, or the bottom edge of the menu bar in macOS. | |
1 (true) if the window is visible; returns 0 (false) if the window is hidden using Hide Window. | |
The width, in points, of the window on which the script is acting. | |
The zoom percentage of the current window. |
This script uses the function Get(CurrentDate)
to check each record in the found set to see if an account is past due. If an account is past due, the script shows a message and prompts the user to click a button labeled Ignore, Send Letter, or Send Mail (set up through the Show Custom Dialog script step). The script captures the user's response using Get(LastMessageChoice)
. Then, based on the user's response, the script performs an action: it cancels the rest of the script, prints a "payment is late" letter, or sends email to the associated account.
Go to Layout ["LayoutName"]
Go to Record/Request/Page [First]
Loop
If [DatabaseName::Date < Get(CurrentDate) - 30]
Show Custom Dialog ["30 or more days late"]
If [Get(LastMessageChoice) = 1]
Halt Script
Else If [Get(LastMessageChoice) = 2]
Go to Layout ["Late Notice"]
Print []
Else
Send Mail [Send via E-mail Client; With dialog: Off; To: DatabaseName::Client; Subject: "Late Notice"; Message: "Your account is past due."]
End If
End If
Go to Record/Request/Page [Next; Exit after last: On]
End Loop
Go to Layout [original layout]