Pages

Banner 468 x 60px

 

Wednesday, November 22, 2017

ModifiedField in x++

0 comments
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:

A financial dimension value is based on the LAND-00013 record and has been used on a transaction. You cannot delete the LAND-00013 record AX 2012

 A financial dimension value is based on the LAND-00013 record and has been used on a  transaction. You cannot delete the LAND-00013 record ...