Null value for string type.

I want to check for a field type string at the form entry level that if the user leave this field blank then it should raise an error.

i am writing this condition to check the null

if table.field1 == ’ '

it is not working

plz help.


should try :

if table.field1 == ""








y can’t u make that field’s mandatory property to ‘yes’

It’s not working

just make the field is mandatory by using properties or code

else write this below code in the validatewrite() method of the datasource

public boolean validateWrite()
boolean ret;

ret = super();

if (Table.Field1 == “”)
ret = checkfailed (“Enter the value”);
return ret;


First u hav 2 tel whether its alwys mandatory or to make mandatory based on the selected value in the other field