Showing posts with label Field modified info. Show all posts
Showing posts with label Field modified info. Show all posts

Jun 14, 2012

Field level Modified()

The following code is for to compare the  modified field value on form level :

Go to form Datasource(My datasource is JpSampleTable) field level and override the field's modified() as -


public void modified()
{
    if(JpSampleTable.JoinDate < JpSampleTable.orig().JoinDate)
        info("Modified date " +strfmt("%1",JpSampleTable.orig().JoinDate)+ " is less than "+strfmt("%1",JpSampleTable.JoinDate));
    super();
}