Posts

Showing posts with the label AX2012

Create route through code AX2012/D365 X++

 Public RouteVersion createRoute()     {         RouteVersion                    routeVersion;         NumberSeq                       numberSeqRoute;         InventDim                       inventDim;         RouteTable                      routeTable;         ItemId                   ...

Uploading/creating records using UnitOfWork class

Public void copyRecordDetails()     {         DH_ProdLine                   ProdLine, ProdLineLoc;         UnitofWork                      unitOfWork = new UnitofWork();                 ttsbegin;         while select ProdLine             where ProdLine.IMSVersionNumber == _Value         {             buf2Buf(ProdLine, ProdLineLoc);             unitOfWork.insertonSaveChanges(ProdLineLoc);...

SSRS report creation in AX through RDP

1. Create Contract class [DataContractAttribute, SysOperationContractProcessingAttribute(classstr(DH_EmplSettlmentUIBuilder))] //SysOperationDataContractProcessingMode::CreateUIBuilderForRootContractOnly)] class DH_EmplSettlementContract implements SysOperationValidatable {     HRMBranchCode branchCode;     HRMEmploymentContractCode contractCode;     HcmPersonnelNumberId emplId; } [DataMemberAttribute("HcmPersonnelNumberId"),     //SysOperationControlVisibilityAttribute(false) ] public HcmPersonnelNumberId parmEmplId(HcmPersonnelNumberId _emplId = emplId) {     emplId = _emplId;     return emplId; } public boolean validate() {     boolean ret;     ret = true;     if (!branchCode)     {         error("@GIP4972");         ret = false;  ...