CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Running custom function after Insert

Print topic Send  topic

Author Message
tbcook

Posts: 2
Posted: 04/21/2005, 9:26 AM

I am needing to run a custom function after a record is inserted and send it 5 of the values that were inserted. I am at a loss as to where I can add the code.

I tried inserting it into the InsertRow() function but it keeps returning an error of invalid datatype. I can run the function without problems from a test form sending it the values...so I am not sure what the CCS page is doing. But I am not sure I can insert another function inside that one either.

Thank you in advance for any help.

Tim
View profile  Send private message
Nicole

Posts: 586
Posted: 04/22/2005, 12:26 AM

Tim,
You can put the code to After Execute Insert event that is fired after successful record insert. Of course use Send Mail action to generate basic mail code. To access form’s values use
form_name.DataSource.field_name.Value

_________________
Regards,
Nicole
View profile  Send private message
Oper


Posts: 1195
Posted: 04/22/2005, 12:17 PM

tbcook,
you only need to put the code on the event
After Execute insert like nicole said, or just after inser.

to refer to your valur you need something like this.

Formobj.Datasource.fields.value

that shoudl work.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


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.