ModifiedField in x++ :
{
public void modifiedField(fieldId
_fieldId)
{
switch(_fieldId)
{
case fieldnum(MyFirstTable,
custGroupId):
this.CurrencyCode="";
break;
default:
super(_fieldId);
}
}
Contoh
:
public void modifiedField(FieldId _fieldId)
{
switch(_fieldId)
{
case
fieldNum(RUM_MasterProjectHeader,
Projectid):
this.Description =
ProjTable::find(this.projectid).Name;
break;
default:
super(_fieldId);
}
}
Customize
methode modifiedFieldnya di Table ya, bukan di Form
public boolean modified()
boolean
ret;
ret = super();
TECMatSup.PIC =
InventLocation::TECFindPICApprove(TECMatSup.InventLocationId,TECMatSup.Site).PIC;
TECMatSup.ApproveBy =
InventLocation::TECFindPICApprove(TECMatSup.InventLocationId,
TECMatSup.Site).ApproveBy;
return
ret;
}
0 comments:
Post a Comment