Publications

How to convert from date to utcDateTime and back

// convert DateTimeUtil::newDateTime(today(), 0, DateTimeUtil::getCompanyTimeZone()); // get current DateTimeUtil::getSystemDateTime(); // utcDateTime to date DateTimeUtil::date(DateTimeUtil::getSystemDateTime());

Data upgrade script

New class for data upgrade: Additional method to existing class: \Classes\ReleaseUpdateDB63_WHS\updateVKWHSWorkEnum Data upgrade script should appear in: System administration/Setup/Checklists/Software update checklist To reset script…

Copy xml element/node to another document

static void testCopyNode(Args _args) { #define.ActivityPath("Message//Activity") str xml; VKCallCenterIntegration callCenterIntegration; XmlDocument doc, docOut; XmlElement xmlActivity, xmlActivityCopy; XmlNode docNode; xml = @'<?xml…

How to get product attribute values in AX 2012

public static void getProductAttributeValues(Args _args) { ItemId itemId = '0007'; EcoResProductAttributeValue ecoResProductAttributeValue; AttributeValueText attributeValueText; InventTable inventTable = InventTable::find(itemId);…

How to select from Common table in AX

static void testSelectCommon(Args _args) { Common common; SysDictTable dictTable; dictTable = new SysDictTable(tablenum(SalesTable)); common = dictTable.makeRecord(); select common where common.RecId == 5637150576; abs(1); }

How to calculate sales retail price of item from code

priceAgr = PriceDisc::findItemPriceAgreement( ModuleInventPurchSales::Sales, retailInformationSubcodeTable.triggerCode, InventDim::find(InventDim::inventDimIdBlank()), inventTableModule.UnitId, SystemDateGet(), 1, salesTable.CustAccount,…

List element names in a given model

static void ListElementsInModel(Args _args) { SysModelElement sysModelElement; SysModelElementData sysModelElementData; UtilElementType elementType = UtilElementType::SharedProject; ModelRecId modelIdFrom = 1662; // ModelId source,…

Moving a project to another model

If you have: more than one model in your layer the elements in project can belong to more that one model in the same layer Then do not move the project directly. Moving a project to another Model will also move all elements that project…

Regular Expression in AX

match function Find several entries: Regular expression with groups Regular Expression Syntax: https://msdn.microsoft.com/en-us/library/ae5bf541%28v=vs.90%29.aspx

RF Interface. General methods.

Here are some usefull methods that may help you in RF interface development. General methods Inventory dimensions methods Usefull standard method to get inventDim from pass: \Classes\WHSWorkExecuteDisplay\initInventDimFromPassDimList…

RF Interface. Objects.

Warehouse management -> Setup -> Mobile device Macros contains names of controls Processes all controls. You have to add each new control processing here to make it appear in pass variable. RF menu processing/creation Extend this class to…

RF Interface. Development.

Development We will create simple activity to enquiry retail item price. 1. Add new enum element and name it VKPriceEnquiry. The element name should be same for both enums. \Data Dictionary\Base Enums\WHSWorkActivity \Data Dictionary\Base…

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics 365 FO.

Authors are allowed to set their own "buy me a coffee" link.
Join us.

Blog Tags