main logo
Subject: Re: Compulsory Input on form
Author: Bhavbhuti Nathwani
Posted: 2001/11/05 14:00:56
 
View Entire Thread
New Search


Just remember to return a .T. if there is a problem with one of the data tests from the BeforeSave() method.

Did I get you correct .T. for failed and .F. for alls well cause default return value by a function is .T.

Thanks for responding.

<i><font color="#663300"><i><font color="#663300">Hi all

I have managed a purchase order form (still under works), currently there are three fields iPONo, dPODt, cPartyID (using a combo).

These three are working and are compulsory fields. In their respective builders I have check marked the respective question for making it a compulsory field. But yet I am able to save the record completely empty.

In CB terms where would you want me to put in the logic to check for empty, in the database, bo, class of the field (txt, cbo, etc), on the form
</font></i>
Hey Bhavbhuti,
I have typically put my data checking routines in the BeforeSave method of the bizobj, with code for messageboxes to inform the user of problems as they occur. Just remember to return a .T. if there is a problem with one of the data tests from the BeforeSave() method.

</font></i>

Regards
Bhavbhuti
 
©2001 Bhavbhuti Nathwani
<-- Prior Message New Search Next Message -->