⚠ 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

Changing DB-Column value on Read/View



AlokNikhil

AlokNikhil
  • profile picture
  • Member

Posted 10 July 2018 - 19:07 PM

Hello Everyone,

Grocery CRUD is a great Library for developer in order to save time.

My query is:

 

I want to change read_status (Column in table) from 1 to 2, when I View/Read (By clicking View button) the row in grocery crud table.

 

If anyone have idea, please share.

 

Thankyou


larasmith

larasmith
  • profile picture
  • Member

Posted 13 July 2018 - 05:55 AM

HI there!

 

The View button is for viewing what is actually in the record.

If you wanted a view button that updates the record, you can create one using the add_action. Please refer to: https://www.grocerycrud.com/documentation/options_functions/add_action.