how to maintain History

Questionshow to maintain History
Aman asked 11 years ago

Hello ,

I wanted to maintain History,
when i update any record, updated record will save in table and old record will store in same table/ or in history table with inactive status.
Please let me know it will be possible in phpgrid

Thanks,

3 Answers
Abu Ghufran answered 11 years ago

Hi,

For customized code, you need to use custom event handlers like on_update, on_insert or on_delete.
You can have your code for history recording in addition to default behavior.

The custom events are supported in licensed version.

kim answered 10 years ago

any examples available for save new rec to a history table on add,
save old rec to history table before edit and save new edit of rec to history table after edit?

Abu Ghufran answered 10 years ago

Sample is not currently available. However i can help in some code snippets.

http://pastebin.com/GvV8bXN9

Your Answer

13 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?