Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Deletes an existing record in a table in one line.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
FM FMSQL | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
FileName | The file name of where the table is inside. Can be empty to look for the table in all files. | Get(FileName) | |
TableName | The name of the table to delete record from. Can be ID of table, so we lookup name by ID. Can be result of GetFieldName() function as we remove field name automatically. |
"Assets" | |
IDField | The name of the first field which provides an unique ID for each record, so we can identify the field. Can be ID of field, so we lookup name by ID. Can be result of GetFieldName() function as we remove table name automatically. |
"ID" | |
IDValue | The value for the first ID field to identify the record. Data type of parameter must match the data type of the field. |
$RecordID | |
IDField2 | Available in MBS FileMaker Plugin 8.2 or newer. The name of the second field which provides an unique ID for each record, so we can identify the field. Can be ID of field, so we lookup name by ID. Can be result of GetFieldName() function as we remove table name automatically. |
"PersonID" | Optional |
IDValue2 | Available in MBS FileMaker Plugin 8.2 or newer. The value for second ID field to identify the record. Data type of parameter must match the data type of the field. |
$PersonID | Optional |
IDField3 | Available in MBS FileMaker Plugin 8.2 or newer. The name of the third field which provides an unique ID for each record, so we can identify the field. Can be ID of field, so we lookup name by ID. Can be result of GetFieldName() function as we remove table name automatically. |
"CompanyID" | Optional |
IDValue3 | Available in MBS FileMaker Plugin 8.2 or newer. The value for third ID field to identify the record. Data type of parameter must match the data type of the field. |
$CompanyID | Optional |
Returns OK or error.
Delete a record based on values:
Set Variable [ $r ; Value: MBS( "FM.DeleteRecord"; Get(FileName); "Contacts"; "First"; "Christian"; "Last"; "Schmitz"; "Company"; "Test Inc.") ]
Created 11st December 2015, last changed 17th January 2020
FM.DataViewerContent - FM.DeleteRecords
Feedback: Report problem or ask question.