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 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 ...