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
|
 |
 |
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 |
 |
 |
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 |
 |
 |
|