Forum Post: Record history of fields modified in each Edit action

  • Thread starter Thread starter kmasani
  • Start date Start date
Status
Not open for further replies.
K

kmasani

Guest
Hello All, We are developing an internal application for our team and one of the key requirements is to track each and every change made to the record fields. Rollbase inbuilt 'Auditing' feature doesn't support Textarea fields and we have quite a few fields of this type. So we are trying to do a custom solution for this use case. I have following code on 'OnSubmit' event of 'Edit' page on my application : -- function my_callback (objName, objId, values) { var server_headline = values['name']; var server_status = values['status']; var browser_headline = $("#name").val(); var browser_status = $("#status").val(); var edit_changes = ''; if ( browser_headline != server_headline ) { edit_change = edit_change + " " + "Old Headline : " + server_headline + "," + "New Headline : " + browser_headline; } if ( browser_status != server_status ) { edit_change = edit_change + " " + "Old status : " + server_status + "," + "New status : " + browser_status; } $('#history_log').val(edit_change); } rbf_getFields("ticket3", "{!id}", "name,status", my_callback); -- But for some reason I don't see the control going to the callback function. Can you please advise what might be the problem here ? Or if there is a better way to handle this use case ? Thanks, Kiran

Continue reading...
 
Status
Not open for further replies.
Back
Top