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 record and has been used on a transaction. You cannot delete the record

  SOLUTION delete in table DimensionAttributeLevelValue base on Bank Account  :  and Delete the Bank Account FINISH