Detailed tracking of user behaviour
Posted: 2022-02-11 10:04
Hello friends AppGineers,
I'm trying to accomplish a more resourceful way of tracking user modifications on records.
The goal is to track which field the user has changed, not just the table, field name and timestamp
but also the contents of the fields that were changed, in another words trying to generate a log of something like this :
Is the best way to accomplish this through javascript or PHP?
Im thinking a .change() function triggered by every field to stack a log of information but that means every single field would have to trigger the change function and that sounds not very efficient.
How would you guys go about solving that? stacking text in a variable through .change() functions or through PHP tweaking the table functions before_insert and after_insert?
I'm trying to accomplish a more resourceful way of tracking user modifications on records.
The goal is to track which field the user has changed, not just the table, field name and timestamp
but also the contents of the fields that were changed, in another words trying to generate a log of something like this :
Code: Select all
Bob has changed table Office,
Field_1 was previously "YES" and now is changed to "NO",
Field_2 was previously "testing" and now is changed to "working",
Field_3 was previously "none" and now is changed to "filled"
Is the best way to accomplish this through javascript or PHP?
Im thinking a .change() function triggered by every field to stack a log of information but that means every single field would have to trigger the change function and that sounds not very efficient.
How would you guys go about solving that? stacking text in a variable through .change() functions or through PHP tweaking the table functions before_insert and after_insert?