This page provides an example of implementing so called "Inline button" i.e. a button that immediately changes the value in the database. Click "Change" to make an inactive product active and vice versa.

To implement such a button, it is necessary to provide some event handlers. Technical details are as follows (click a link below to see the appropriate code):