This topic is locked

Copy and Automatic Save

11/22/2009 10:13:33 AM
ASPRunnerPro General questions
E
erdinoxyz author

Hello.

I want automatic copy and save. After process edit.

How I do?

Example: after click save button in Payment_edit.asp ;
if Payment1 < GrandTotalPayment then

1- EditPage Copy

2- and Save

3- Go to List.asp
Thanks.

J
Jane 11/24/2009

Hi,
use After record updated event and Save new data in another table action on the Events tab for this purpose.

E
erdinoxyz author 11/25/2009

Hi,

Very thanks for your help.

Your idea useful.

I solved this problem with yor suggestion:

....

Payment_edit.asp Events/After record updated tab:

if dict("Payment1")<dict("GrandTotalPayment") then

Response.Redirect "Payment_add.asp?copyid1="& dict("ID")

else

Response.Redirect "Payment_list.asp?a=return"

end if

....

(Note: dict("ID") is record row number)

This code is work.

But I want little something:

I not want click "Save Button" in page Payment_add.asp?copyid1="& dict("ID").

Where is possible? Auto Saving.

Very Thanks.

J
Jane 11/26/2009

Hi,
you can copy and save record directly in the After record added/After record updated events.

Use Save new data in another table action as a sample.