Jump to content


Changing DB-Column value on Read/View

read view action

  • Please log in to reply
1 reply to this topic

#1 AlokNikhil

AlokNikhil

    Newbie

  • Members
  • Pip
  • 1 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.

 

Thankyou



#2 larasmith

larasmith

    Advanced Member

  • Members
  • PipPipPip
  • 191 posts
  • LocationPhilippines

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