⚠ 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

Can i generate only U from CRUD : )



chris

chris
  • profile picture
  • Member

Posted 21 September 2012 - 15:02 PM

Hi,

I was pointed out groceryCRUD today and i quite like it. I have one question, is it possible to generate only Update option for a
table i already have create, remove and display handcoded i have my method show that displays a member however im feeling lazy
and dont want to write a whole new form just for editing.

Can this be done and if so any pointers are helpfull.

Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 16 May 2013 - 20:20 PM

/topic/887-force-default-edit-or-delete-state/?p=7469

 

The above link, i have posted a solution to your query. I know its too late for project u were asking for but never too late for the 1 in future :)

 

Happy coding.


davidoster

davidoster
  • profile picture
  • Member

Posted 16 May 2013 - 22:19 PM

You just need to use, unset_add, unset_delete, unset_list and unset_back_to_list.

Then you need to make sure that you have the primary_key of the table (and the row in question) and you pass it on the edit url, e.g.

customers/edit/1