CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Preview Page before Insert/Update

Print topic Send  topic

Author Message
Imranz
Posted: 01/10/2002, 10:29 AM

I would like to set up something where I enter a bunch of content in a textarea in a form, and when I click submit, I want to see a 'preview' page that allows me to either continue and insert/update the record, or hit edit to go back and edit until satisfied.

Anyone got any ideas or seen an example or tips that'll solve this?
DPS
Posted: 01/10/2002, 11:22 AM

You could design the form with variables/params. THen on your preview, you would just set up a form with labels of the params, and if the person clicks on ok/confirm, etc...you could then do an insert into your database.
Imranz
Posted: 01/10/2002, 12:07 PM

I could set up a form to receive the variables/params, but how do I get a record form to post to that preview page. Usually a content form just inserts/updates and then goes to the action page.

If you could be more specific, that would be great. Thanks!
Chris
Posted: 01/10/2002, 3:42 PM

Could you add code in the Before Insert/Update event to show the form you want?
You might even want to try to write the code in the validation event, this way if the user selects no, you could have the validation fail so the record would not be updated.

Just a couple of thoughts.
Nicole
Posted: 01/11/2002, 1:57 AM

Hello,
I can propose the following solution:
1. create common record form with primary key field as input parameter. On Insert/Update user is redirected to the next record form that is described in the next paragraph. Note, that primary key is to be passed from this form. In order to do it mark input primary key as 'Transfer'. How to pass new inserted primary key refer to one of the articles posted under 'Tips and Articles' section.
Actually the record will be inserted or updated on this form.

2. Preview record form. Set all field (you want to preview) types to Label, primary key set to Hidden. Change button captions, e.g.:
Update - Accept changes
Delete - Reject changes
Cancel - Return to Edit

Then create Custom action event and modify the code in order to do:
- nothing, just redirect when user hit 'Accept changes'
- delete record when user hit 'Reject changes'
- redirect to previous record form and pass primary key to it when user hit 'Return to Edit'.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.