Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Questions And Answers for PowerBuilder Interviews

HomePrevious Lesson: Question: #44 of #131
Next Lesson: Question: #46 of #131
Question: #45 of #131 Section: DataWindow Version: 5.0 or later

Question

In a DataWindow, there are few fields with validation rules, and few fields with script in the ItemChanged event. I want to display custom error message when data doesn't go through the ItemChanged event, but want to display default error messages when the data doesn't go through the validation rules. What should I do?

Click here to see the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Answer

Well, define an instance variable. Turn it one when you decide the data is invalid in the ItemChanged event. In the ItemError event, return appropriate return code depending on the instance variable value and reset the instance variable to it's default value appropriately.

Click here to go to top of the page.
HomePrevious Lesson: Question: #44 of #131
Next Lesson: Question: #46 of #131

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com