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();
}
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();
}
No comments:
Post a Comment