Is there any easy way to copy my previous insert ? For example in demo: Insert group with 2 users with msg "Group with 2 members working on subject 1" for day 01-08-2013. Now I wanna copy that and get same values but now I will change msg and date.
How can I retrieve this data ? It can be like for group 1 I wanna define default values and then change them on update. Any idea ?
Sorry for late reply. I was away. For filling up text fields in your form there is a way which I can suggest as below.
This is only an idea. you may make the query. Query for the rows from the table you wanted, with limit=1 and condition as primary_key to be in descending order. You will get the last insert in that table.
Then fill all the required attributes of that row in advance to the new model you send to the form. It will fill the fields as per the last insert.
I can get what I want, but previous insert is deleted on save … (I change that group_id and that’s all -.-). I want to get it and insert new data and keep old one ;/