CodeCharge Studio
search Register Login  

Web Reports

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

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
AQUANANU


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
CEO
Positive Thinker's Inc.
View profile  Send private message
Oper


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

Do Custom Validation

Example:
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"  
end   

Then you should Change the validation for:
  
if isempty(Formobj.Field.value) then  
  MyControlError Formobj,"The Content of NameofField is required",DBConnection1  
end   
.  
.  
.  
.  
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.
_________________
____________________________
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.