How to Track Client Changes in Ninox (Audit Log Table)
Hello everyone,
I am trying to create an Audit Log Table in Ninox to track changes made to a machine registry table.
Objective:
Every time the associated client changes for a machine (which I lend), I would like to record the following information in a separate table:
When a client stops using a machine:
- Machine ID
- Old Client ID
- Rental End Date
When a new client starts using the same machine:
- Machine ID
- New Client ID
- Rental Start Date
Additional Requirement:
If a record for the previous client already exists, I would like to update only the Rental End Date, avoiding duplicate entries.
Question:
What is the best way to implement this logic in Ninox? Has anyone encountered a similar situation and can share some advice?
I truly appreciate your support and the time you dedicate to helping.
Mauro
5 replies
-
Are you doing the data entry in the machine registry table or in a dashboard?
-
Here is my take on your question. I think the trick here is to track the recordID of the Activities record and the Audit record. Why? So you don't have to do a select when you need to update the Audit record. You can just use the record() command. This will speed things up in the future when the Audit log is tens of thousands of records.
Content aside
- 2 days agoLast active
- 5Replies
- 54Views
-
3
Following