AX – D365FFO – MODIFY TABLE PROPERTIES THROUGH EXTENSION

To modify properties on a table, you must create an extension of that table. In Application Explorer, right-click the table, and then select Create extension. A new table extension is created in the selected project, as shown in the following illustration. You can now modify the following properties through the property sheet: Created ByCreated Date TimeModified … Continue reading AX – D365FFO – MODIFY TABLE PROPERTIES THROUGH EXTENSION

AX – D365FFO – MODIFY EXTENDED DATA TYPES (EDTS) THROUGH EXTENSION

There are several properties that can be customized on existing extended data types (EDTs) through extension: LabelHelp textForm helpCountry region codesString sizeYou can only modify the value if the EDT does not extend from another EDT.You can only set the new String size to a value equal to or larger than the base EDT value.Decimals … Continue reading AX – D365FFO – MODIFY EXTENDED DATA TYPES (EDTS) THROUGH EXTENSION

D365FFO – Identify all extension changes made to the base form

There are two possibilities : Right-click the base form and select view references.In the search bar on the form extension element, enter the text e:. Customization and Extension - Example: Navigate to FMRental.Extension in the Tree DesignerIn the Visual Studio, in Solution Explorer, in the FleetManagement Discounts project, expand User Interface > Form Extensions. The … Continue reading D365FFO – Identify all extension changes made to the base form

D365FFO – AX – Class extension – Method wrapping and Chain of Command

The functionality for class extension, or class augmentation, has been improved. You can now wrap logic around methods that are defined in the base class that you're augmenting. You can extend the logic of public and protected methods without having to use event handlers. When you wrap a method, you can also access public and … Continue reading D365FFO – AX – Class extension – Method wrapping and Chain of Command

D365FFO – X++ – AX – How to write a display method in extensions (D365)

Requirement is to display a column from InventTable on Movement Journal lines form based on the selected item. 1. Create a new class and give a name, best practice is to give a name of the object with extension keyword 2. Once class is created, make sure you are using proper syntax and namespaces as … Continue reading D365FFO – X++ – AX – How to write a display method in extensions (D365)

D365FO – AX – X++ – Extension method data accessor examples

SourceEventParmExampleClassPre/Post eventXppPrePostArgsGet args and parmameter values from a method that is being extended. Parm 1 = Object Parm 2 = CommonPurchCreateFromSalesOrder callingClass = args.getThis() as PurchCreateFromSalesOrder;       Object callerObject = args.getArgNum(1) as Object;Common callerRecord = args.getArgNum(2) as Common;ClassPre/Post eventXppPrePostArgsClass example: SalesLineType salesLineType = args.getThis() as SalesLineType; FormInitializedxFormRunFormDataSource purchLine = sender.dataSource(formDataSourceStr([formname],[table]));FormDataSourceFormDataSourceFormDataSource formDS = sender.formRun().dataSource(formDataSourceStr(EcoResProductDetailsExtended, MHSmartATPItemSettings));MHSmartATPItemSettings smartATPItemSettings = formDS.cursor();FormDataSource FieldFormDataObjectFormDataSource … Continue reading D365FO – AX – X++ – Extension method data accessor examples