⚠ 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 forum is read-only and soon will be archived. ⚠

Changing DB-Column value on Read/View

read view action

  • Please log in to reply
1 reply to this topic

#1 AlokNikhil



  • Members
  • Pip
  • 2 posts

Posted 10 July 2018 - 07: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.



#2 larasmith


    Advanced Member

  • Members
  • PipPipPip
  • 200 posts

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.groceryc...ions/add_action.

Also tagged with one or more of these keywords: read, view, action

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users