Publications

Move form control at runtime

static void moveControl(Args _args) { FormRun fr = new FormRun(new Args(formstr(CustTable))); Object parentControl, insertAfterControl; FormControl control; void wait(int _delayTime = 1000) { Object waitObject = new Object(); ;…

Create SalesLine from X++ code

static void createSalesLine(Args _args) { SalesTable salesTable = SalesTable::find('012500'); ItemId itemId = 'G0001'; InventDimId inventDimId = '000051'; SalesLine salesLine; // performs relevant checks. Can we create line? // If sales…

BP error: DateFlags should be specified when calling date2str

Add additional parameter which is not mandatory as follows: A DateFlags enumeration value that indicates whether the language settings on the local computer should be used to calculate the proper left-to-right or right-to-left sequence in…

Create XML in AX

static void testWriteXML(Args _args) { XmlNode docNode, activityIdNode, languageNode; XmlDocument doc; XmlElement messageNode; XmlNode dataNode; XmlNode activityNode; str xmlFileName; VKXMLDataContract dataContract = new…

Read XML in AX

static void testReadXml(Args _args) { str sourceXMLFile, sNumber, sName; XmlDocument xmlDocument; XmlNodeList nodeList, childNodeList; XmlNode node; XmlElement element; XMLNodeListIterator xmlNodeListIterator; Counter counter; int i, j; ;…

System and Client/User Language

System Language System administration > Setup > System parameters -> General -> System language To get system language from X++: Client/User Language Tools > Options -> General -> Language To get client/user language from X++:

Table extension framework

Assume that we have table TableExtensionParent and we want to make extension table TableExtensionChild 1. At TableExtensionChild table Add new relation named TableExtensionParent, table TableExtensionParent. Add new field ForeigKey ->…

Hide form info parts/fact boxes at runtime

protected void toggleFormPartVisibility(boolean _isVisible = false) { PartList partList; FormRun formPart; int counter; partList = new PartList(formRun); for(counter = 1; counter

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