⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Tracking update changes



Cmcanuck
  • profile picture
  • Member

Posted 15 November 2012 - 18:15 PM

I've been tasked with tracking the individual column changes a user makes to a row on an edit page. So if a user edits an entry and changes two values (out of many) then two entries would appear in a "changelog" table showing before and after values for what field and what entry.

Ideally I could do this through a callback, as I'd have access to most of what I'd need, but it would only offer me the state of the fields as they are at that frame in time, not what they started as when the page loaded. If there was a "callback_after_load()" I could duplicate that post_array and compared it later in a callback_after_update(), but I don't know that such a callback exists.

Am I over or underthinking this? Some functionality that I'm not aware of? Thank you for any assistance you can lend.