Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Friday, September 13, 2013

jumpref() in Dynamic AX

Hi,

public void jumpRef()
{
Args args = new Args();
PurchTable     purchTable; // that we are using not in the datasource list or it can be
;

args.caller(this);
purchTable= PurchTable::find(purchTable.PurchID);
Args.record(purchTable);

new MenuFunction(menuitemdisplaystr(purchTable), MenuItemType::Display).run(args); //menu item name of that form that is to refer
}

Friday, September 6, 2013

Validate an enum in Dynamic AX

Validate an enum

 if(NetOccupied.valueStr() == enum2str(NetOccupied::Vacant))
        CreateReservation.enabled(true);
    else
        CreateReservation.enabled(false);

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...