Skip to main content

Posts

Showing posts from September, 2022

How to get , Mark and Marked records in Axapta(Ax 2012 and D365 FnO)

  Mark all records: public void selectall(boolean _select) { CustTable     localCustTable; localCustTable = this.getFirst(); while(localCustTable) { this.findRecord(localCustTable); this.mark(_select); localCustTable = this.getNext(); } } Read marked records: CustTable     localCustTable; localCustTable = this.getFirst(1); //get marked while(localCustTable) { //do something localCustTable = this.getNext() }   OR: for(localCoInfo = CustTable_ds.getFirst(1);localCoInfo;localCoInfo = CustTable_ds.getNext()) { //do something }

Refresh Data, Dictionary, Element by code in Axapta

  // Reset data CG_RefreshAll::reset(); CG_RefreshAll::doDictionaryFlush(); SysEvent::fireEvent(SysEventType::FlushDictionary); if (args && args.parmEnum() == NoYes::No) info("@SYS68566"); // Data flush CG_RefreshAll::doDataFlush(); SysEvent::fireEvent(SysEventType::FlushData); if (args && args.parmEnum() == NoYes::No) info("@SYS98783"); // AOD Flush CG_RefreshAll::doAODFlush(); CG_RefreshAll::clearManagedCaches(); CG_RefreshAll::clearGlobalObjectCaches(); SysEvent::fireEvent(SysEventType::FlushAOD); SysExtensionCache::clearAllScopes(); CG_RefreshAll::clearGlobalCaches(); if (args && args.parmEnum() == NoYes::No) { info("@SYS68564"); }

Date Time Formatting On SSRS Report using D365FnO

 

LOG Tables and MRP Log temporary Tables in Axapta

 Batch job log tables .. BATCHHISTORY BATCHJOBHISTORY BATCHCONSTRAINTSHISTORY BATCHJOBALERTS MRP temporary tables  ReqTrans reqTransCov reqPo reqLog REQPROCESSITEM REQPROCESSLIST REQPROCESSTHREADLIST REQPROCESSTRANSFILTER reqRoute INVENTSUMLOGTTS Reqcalctask Reqcalctasksbundle Requnscheduledorders Reqcalctasktrace Reqprocesslist Reqprocessthreadlist reqprocesstransfilter

X++ Code to create Customer Delivery Address in Axapta

  This is X++ Code to create Customer Delivery Address in Axapta , This code can help you for Ax 2012 and D365 FnO also.   LogisticsPostalAddress address; custtable = Custtable::find("1223"); address.Street = “abc”; address.ZipCode = “334223”; address.City = “xt”; addressView.Party = CustTable.Party; addressview.initFromPostalAddress(address); DirParty = DirParty::constructFromPartyRecId(CustTable.Party); roles = [LogisticsLocationRole::findBytype(LogisticsLocationRoleType::Delivery).RecId]; DirParty.createOrUpdatePostalAddress(addressView,roles);