This topic is locked
[SOLVED]

 Create Next Record With Common Fields

5/20/2013 4:12:26 AM
PHPRunner General questions
L
lakanol author

I have make a button in edit page when the record is saved.

It will have a button appear to return to the blank edit page for creating another record.
By the way, I also need to have some fields require to bring into the new record.
Any hints for me to editing in the 'editor' part?

for client before/ server / client after?
Thanks a lot.

Sergey Kornilov admin 5/20/2013

You can achieve this saving data from entered record to session variables and using those session variables as default values.
More info:

http://xlinesoft.com/phprunner/docs/speed_up_data_entry_using_events.htm

L
lakanol author 5/20/2013

Thanks a lot.
Solution:

1)Mark the required fields have a default value with $_session["date"]

and $_session["date"] = $values["date"] in the after add record in editor part.
2) Create button and make the code in client after part.

location to which page and

$_session["date"] = $values["date"]
Complete.

L
lakanol author 5/21/2013

Sorry for re-asking.
I have meet some problem that it will always appear the session store in the add page.

Is it possible to appear in the add record which my button directed to?

L
lakanol author 5/22/2013

completed.
set the session return null in list page: after record processed