CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 save the Record form validation errors to a variable to record in a database

Print topic Send  topic

Author Message

Posts: 107
Posted: 10/28/2010, 1:09 AM

i am using a record form to update a record.

I want to log all the errors to a database so that can be anlayised later for common errors being made by people while using the forms,

I was unable to access the value of the recordform.errors,

Please advise what is the method to access that value.

i am using VB asp.
Navneet Kakkar
Positive Thinker's Inc.
View profile  Send private message

Posts: 1190
Posted: 10/30/2010, 9:43 AM

Do Custom Validation

Dont use the Property required Entry. use your own validation

like (CODECHARGE WAY): This Work ok
if isempty(Formobj.Field.value ) then  
  formobj.errors.adderror "The Content of NameofField is required"  

Then you should Change the validation for:
if isempty(Formobj.Field.value) then  
  MyControlError Formobj,"The Content of NameofField is required",DBConnection1  
function MyCOntrolError(vOBJ,vSTR,vCNN)  
        vobj.adderror.error vSTR  
        vcnn.execute "INSERT ....................................................................."   
End Functon  

that should work

NOTE: Check for typo or error i write on the forum without a test.

Also you could send the name of the form as a parameter so could track error for every other forms.
____________________________ (Free CMS,CRM Developed in CCS)
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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login

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