Pages

Banner 468 x 60px

 

Wednesday, November 22, 2017

Active Methode in x++

0 comments
Active Methode in x++ :

Active have in datasource :

fieldName.visibale(False);
(or)
 Table_ds.object(fieldNum(Table, Field1)).visible(False);

int active()
{
    int     ret = super();
    journalFormTrans.datasourceActivePost();
    dimensionDefaultingController.activated();

    // add by adit
    if(xUserInfo::find().id == 'admin') // change bu Diah for RUM Project's
    //if(xUserInfo::find().id == 'diah')
    {
        InventJournalTrans_ds.object(fieldNum(InventJournalTrans, CostPrice)).visible(true);
        InventJournalTrans_ds.object(fieldNum(InventJournalTrans, CostAmount)).visible(True);
    }
    else
    {
        InventJournalTrans_ds.object(fieldNum(InventJournalTrans, CostPrice)).visible(false);
        InventJournalTrans_ds.object(fieldNum(InventJournalTrans, CostAmount)).visible(false);
    }
    // add by adit

    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