Mac OS X
Components Crossplatform Mac & Win Server (Not) Client Old Guides Examples
New in version: 6.1 6.2 6.3 6.4 6.5 7.0 7.1 7.2 7.3 7.4 Statistic
Log record deletion.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|TimeStamp||Pass here the timestamp field you added for auditing to the table.||AuditTimeStamp|
|TableName||The name of the table.||"Firma"|
A list of field names to ignore. Global fields and those set with Audit.SetIgnoredFieldNames are always ignored.
DescriptionLog record deletion.
In order to log record deletion, please go to "Manage Accounts & Privileges" dialog in FileMaker. Check the Privileges Sets tab and create a new custom privilege set. You can duplicate one of the existing ones like the "Data Entry Only" set. Edit the new privilege set and select for Records the custom privileges option in the popupmenu. For the custom record privileges, you choose for delete the limited option in the popupmenu. Now in the specify calculation dialog, you enter the function: MBS( "Audit.Delete" ). Done for this table. Repeat for other tables and for other privilege sets you need.
The plugin will analyse the record on deletion now and write down values to AuditLog table with Create/Changed entries if the record was not yet analyzed or not completely analyzed so far. Finally for a delete operation, it logs a delete entry.
In the fields to ignore parameters you can pass also "FieldName|Value" to assign special values automatically. As this parameter can be build with a calculation, you can query variables or other tables for information you want to log.
You can call Audit.SetIgnoredFieldNames in order to have the plugin ignore some fields. Or pass the field names to this function.
Be aware that even if you call this function from the calculation in privileges the deletion may be cancelled later and you have deleted logged, but not executed. You an work around by implementing your own dialog for user to cancel.
Log record on delete:
Feedback: Report problem or ask question.
MBS Xojo Plugins