Print Page | Close Window

How to validate item text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=21587
Printed Date: 15 November 2024 at 5:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to validate item text
Posted By: schwinn
Subject: How to validate item text
Date Posted: 15 April 2013 at 12:10pm
Hi Folks
 
I need to validate the CXTPReportRecordItem in report control in tree mode. If the text is no good I would like to display in a balloon tip in the edit control as well
 
When the user is typing text, I can display a balloon tip in OnEditChanging but my validation requires pinging a database to see if the entered text is allowed. So not a good place here to validate since every character typed would ping the database.
 
I cannot show a ballon tip in OnEditChanged, my guess is because OnEnKillFocus has occured.
 
Can anyone tell me the correct mechanism. I have caught XTP_NM_REPORT_VALUECHANGED but the edit control has gone.
So in short overridding
1. OnChanging, no good, I cannot keep pinging the database.
2. OnChanged / OnValidateEdit, cannot get a balloon tip to display, due to KillFocus?
3. Catching XTP_NM_REPORT_VALUECHANGED still cannot display a balloon tip in the edit.
 
Anyone help please...
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net