validate fields in dialog box

Hi All,

how can we validate field in dialog, say if we have a fields Item,amount fields,

amount entered in amount field should not less than 1000. if it is less than 1000 it must throw error, how can we do it.

where we have to write the logic, in which method

Hi Rockey,

You can add a method validatefield to field

You type method like below

public boolean validateField(fieldId _fieldCheckToId)
boolean ret;
ret = super(_fieldIdToCheck);
if (ret)
switch (_fieldIdToCheck)
case fieldnum(MyTable, Amount) :
if (this.Amount <= 1000)
ret = checkFailed (“Amount is must be more than 1000”);
return ret;


// ı hope helpfull for you.