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

 "Tell-A-Friend" Revisited

Print topic Send  topic

Author Message
S. Brown
Posted: 02/05/2002, 10:44 PM

The Tell-A-Friend example uses a RECORD (form) CC page that does NOT connect to any data source; it's used as a basic form where visitors enter data and press an INSERT (button with "SEND" as its text). Code is inserted in the BEFORE INSERT event to send an email.

However - if you want to display information from a datasource (like event information to "tell a friend about an event"), and want to use some of the information from the datasource in the email to be sent - use of the INSERT button will attempt to add a record to the datasource.

Are these viable options:
(a) Use a URL type field (label) to construct a link that would pass selected record data as parameters to a "SEND EMAIL" page (another form with no datasource where you gather the FromAddress, ToAddress, and EmailText) and override INSERT on this second page to process the email information.

(b) Insert an html "SUBMIT" button of your own (possibly in a field label area) and insert "CUSTOM ACTION" code in the RECORD page with the datasource to {POST) the parameters to the SEND EMAIL page?

*Might be nice to do this from a GRID I suppose...however, a GRID has no CUSTOM ACTION from what I can determine - a GRID is not a FORM?

(c) Any others out there? ....
Andrew B
Posted: 02/05/2002, 11:46 PM

Why don't you just go along your merry way, doing everything as you currently do. When you are done with the email send, just call

exit sub

This will exit the sub 'formname_action()', or you can simply do a

response.redirect sActionPage

or code in your own custom page name where sActionPage is.
S. Brown
Posted: 02/06/2002, 12:23 AM

Knew it had to be easier than what I was brain-blocked to do. Will try it.

BTW: Thanks for telling a friend! <SB

   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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