Mandatory Fields On FORM ;;; Help Me

I have a customized form.

i want to check the some conditions based on user entry on form lines…if true the document will realease otherwise will throw an error…

how can i do this

http://oi40.tinypic.com/34e9i6d.jpg

If the error has to be thrown on modifying a field have your code at validate method of that field in the form data source(if the validation is form specific else place your code in validateField at table level)

If the error has to be thrown on saving the changes, have your code at validateWrite method of the form data source(if the validation is form specific else place your code in validateWrite at table level)

my code on table

but its not working…

boolean validateWrite()
{
fieldId _fieldIdToCheck;
boolean ret;

ret = super(_fieldIdToCheck);

if (ret)

{

switch (_fieldIdToCheck)

{

case fieldnum(My_Table, custName):

if (!this.CustNum)

ret = checkFailed(" CustName Must Be Filled in");

}

}

return ret;
}

boolean validateWrite()
{
fieldId _fieldIdToCheck;
boolean ret;

ret = super(_fieldIdToCheck);

if (ret)

{

switch (_fieldIdToCheck)

{

case fieldnum(My_Table, custName):

if (!this.CustNum)

ret = checkFailed(" CustName Must Be Filled in");

}

}

return ret;
}

It is code for validateField, where you will be having the fieldId and not for validateWrite

Take help of this method, \Data Dictionary\Tables\InventQualityOrderTable\Methods\validateWrite

sir i want wite a code based on this logic:

first logic will pick itemID from Row (ItemID Filled by user in table row)…and check its color size config activation

suppose if logic find colour activation then colour ID must be filled on current itemId row…

kindly Help Me

Thanks in advance

Have a look at \Data Dictionary\Tables\ForecastSales\Methods\validateWrite

which uses \Data Dictionary\Tables\ForecastSales\Methods\checkItemDim for validating the different item dimensions