How to validate item text |
Post Reply |
Author | |
schwinn
Groupie Joined: 17 April 2009 Status: Offline Points: 12 |
Post Options
Thanks(0)
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...
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |