Jump to content


Can i generate only U from CRUD : )


  • Please log in to reply
2 replies to this topic

#1 chris

chris

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 21 September 2012 - 03: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.

#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 16 May 2013 - 08:20 PM

http://www.grocerycr...e-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.



#3 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 16 May 2013 - 10: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


Edited by davidoster, 16 May 2013 - 10:20 PM.

____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users