⚠ 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

Add Record form - Copy and Save functionality



jcklabatt

jcklabatt
  • profile picture
  • Member

Posted 09 March 2013 - 14:20 PM

Hi everyone,

 

Is it possible to create a copy of an existing row, edit the contents, and save it as a new record? So far, the only thing that I have been able to find is located in the "Future Feature" section, entitled "create a button duplicate row". It sounds like that will fit my needs. Any updates on when this might be available?

 

BTW: I would like to volunteer my services to help out whenever possible. I'm not proficient in PHP programming but I can help out with mundane tasks like graphics design, css, help documents, (etc.) if needed?

 

Thanks in advance,

Jack


davidoster

davidoster
  • profile picture
  • Member

Posted 10 March 2013 - 09:13 AM

Under which condition do you want this copy of an existing row to happen?

Will it be automated or via user intervention?


jcklabatt

jcklabatt
  • profile picture
  • Member

Posted 10 March 2013 - 14:36 PM

Hi Davidoster,

 

Thanks for the quick response. The functionality I'm looking for would be "user intervention". Where as, a user selects an existing record (via the Edit pencil), then edits the field(s) as needed, then selects the "Save as New" button. This would be great if most of the record information were identical accept for one or two items that needed changing. Here's an image to describe my thoughts:

 

[attachment=489:save-as-new.png]

  


davidoster

davidoster
  • profile picture
  • Member

Posted 10 March 2013 - 18:55 PM

1. you need to go under assets/grocery_crud/themes/your theme/views/edit.php and put the html for the new button

2. you need to go under assets/grocery_crud/themes/your theme/js/yourtheme-edit.js and amend it as appropriate

3. then probably you need to change the library itself and extend the grocery crud model but I need to investigate it more before I tell you something certain.


juanmoras

juanmoras
  • profile picture
  • Member

Posted 02 May 2013 - 09:27 AM

Any solucion?


vladbutterfly

vladbutterfly
  • profile picture
  • Member

Posted 02 May 2013 - 11:28 AM

Hi JackLabatt

Did you find any solution Im working on this since 3 days and I couldnt resolve it

Help please

Thanks


vladbutterfly

vladbutterfly
  • profile picture
  • Member

Posted 02 May 2013 - 11:29 AM

/topic/1372-copy-button-help-please/

Maybe this could Help you ??


shuvo_mahfuz

shuvo_mahfuz
  • profile picture
  • Member

Posted 18 July 2013 - 07:57 AM

any one find any solution for this ?


victor

victor
  • profile picture
  • Member

Posted 18 July 2013 - 09:38 AM

There a lot of info how to make that.

first learn php. It's basic things