static void countRecords(Args _args) { Query q = new Query(); QueryBuildDataSource qbdsInventTable, qbdsInventDimCombination; QueryRun qr; Integer counter; Integer loops; Common common; qbdsInventTable =…
static void countRecords(Args _args) { Query q = new Query(); QueryBuildDataSource qbdsInventTable, qbdsInventDimCombination; QueryRun qr; Integer counter; Integer loops; Common common; qbdsInventTable =…
Editing query and getting error when trying to display datasources to join to Sales orders? Error DictField object not initialised. Stack trace (C)\Classes\SysQueryBuilder\buildRelation - line 67…
Simple dialog with field validation and control override method: Usage:
1. Add new enumeration value to \Data Dictionary\Base Enums\MCROrderEventType Do not forget to leave a gap 2. Add new field to \Data Dictionary\Tables\MCROrderEventSetup of type Enum - NoYes In similar way as majority of fields in this…
Call before super() on init: Use sysFormEnumComboBox.selection() to get correct enum value.
Table types: Regular – a standard physical table InMemory – the type of temporary table which existed in the previous versions of Dynamics Ax. Such tables are held in memory and written to a local disk file once they grow beyond a certain…
FormDataSource formDataSource; FormRun callingForm; int dataSourceNo; Common callingRecord; super(); if (element.args().record().isFormDataSource()) { callingRecord = element.args().record().data(); callingForm = element.args().caller();…
Useful when you need to convert real/date sending email to format of some user based on his language: \Classes\RetailENInfo\formatDatetimeData \Classes\RetailENInfo\formatNumericData
Total available physical/total Please see also Available physical on exact dimensions Currently reserved physical by SalesLine Or
The Table.Field does not have a corresponding parm-method on the AxBC-class
Fetch customer contact information (email/phone) Update/create new contact info record, where first parameter is vendor/customer Party RecId
Covered cases: 10, >10, <10, <=10, >=10, 10..15, 10.., ..10 To validate user input:
If you open form from X++ in different company you expect that it will work in the company you stated? TestForm is simple form without datasource and only one button which displays infolog with current company: Bad thing is that it will…
public static void lookupInvoiceAsset(FormControl _formControl) { SysTableLookUp lookUp; Query q = new Query(); QueryBuildDataSource qbds= q.addDataSource(tableNum(KMCollection)); DataAreaId masterCompany; //super(_formControl,…
Want to work with XML as easy as in following examples, do not depend on XML format and have ability to change format to JSON? Read XML message: Write XML message: Select node with namespace: Base abstract class to support several message…
// By return salesLine // By return SalesId
Error executing code in CIL: <object> object does not have method 'new' And you are using SysExtensionAppClassFactory to instantiate correct type of a class. The problem usually is in different number of parameters which are at parent and…
By Vitaliy Glushchenko: Job to fix the issue: Run This job and selectaddressFormatId from error above. Rerun synchronization.
Return Order header: Return Order lines: To find original SalesId if return order lines exist:
Attribute class, which will be used to attribute each class in the hierarchy and instantiate the correct one. Should extend SysAttribute. construct method of the base class, which based on the enum instantiate the right class from the…
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.