Hi,

You can use the following code:

Say you are having CustTable as datasource then the code would be

if (CONDITION1 is TRUE)
{
    CustTable_ds.object(fieldNum(CustTable, Name)).mandatory(true);
}
else
{
    CustTable_ds.object(fieldNum(CustTable, Name)).mandatory(false);
}

Hope this helps you.

Regards,
Sumit


On Thu, May 8, 2008 at 8:30 PM, raydg85 <[EMAIL PROTECTED]> wrote:

>   Hi all how can i make fields manadatory for only a certain criteria?
> EG fixed assets/value model
> If the deprication method is "consumption" then "consumption dprication
> group" field must be filled in.
> but if deprication method is something else it is not manadtory.
>
> Thanking you in advance
> Raymond David Goodman.
>
> 
>

Reply via email to