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

 adding string before insert

Print topic Send  topic

Author Message
Dunkie
Posted: 09/25/2002, 7:55 AM

hi,
I've created a form in CCS to capture user info in a support center. When the userid is entered for sayedwin@mycompany.com, I wish only to have the data entry to have "edwin" and the "@mycompany.com" bit to be added using a BEFORE INSERT. I can achieve this in CC but in CCS it's not working. Anyhelp here?

'Custom Code @28-73254650
' -------------------------
' Write your own code here.
dim afol, uname
afol="@" & "africaonline" & "." & "com"
uname=getparam(cs_calllog.username.value)

cscallog.username.value=uname & afol

' -------------------------
'End Custom Code
Nicole
Posted: 09/30/2002, 2:47 AM

Dunkie,
as I see you just want to concatenate the value entered by user and the custom code. Use the following code in the Before Insert event:
Dim afol
afol="@" & "africaonline" & "." & "com"
'OR
' afol="@africaonline.com"
form_name.DataSource.username.Value = form_name.DataSource.username.Value & afol

   


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.