AX – D365FO – Adding a Reference Group Lookup in Microsoft Dynamics AX 2012

In Microsoft Dynamics AX 2012, we can use a reference group to display the auto identification of a foreign key in a form. By using the ReplacementFieldGroup property of the reference group control, we could also choose to display a column instead of the auto identification of the foreign key. Sometimes, we need to filter … Continue reading AX – D365FO – Adding a Reference Group Lookup in Microsoft Dynamics AX 2012

AX – D365FO – Add a lookup to Runbase dialog field

This is the result we want to obtain Create a RunBasebatch class class ERAWriteOffLaunch extends RunBaseBatch { DialogField dialogCustAccount; accountName custAccount; } <!-- wp:code --> <pre class="wp-block-code"><code>class ERAWriteOffLaunch extends RunBaseBatch { DialogField dialogCustAccount; accountName custAccount; } public Object dialog() { DialogRunbase dialog = super(); dialogGroupSites = dialog.addGroup("@SYS103214"); dialogCustAccount = dialog.addField(extendedTypeStr(CustAccount)); return dialog; } public boolean … Continue reading AX – D365FO – Add a lookup to Runbase dialog field

D365FFO – AX – X++ – How to: Add a Lookup Form to a Control

You can use X++ to add a lookup form to a control. To create a custom lookup form, you override the lookup method of the control. You can then create a query and lookup form you can use to populate the control. However, the lookup that appears is associated only with the specified control and … Continue reading D365FFO – AX – X++ – How to: Add a Lookup Form to a Control

D365FFO – AX – X++ – Custom Lookup for a dialog field

This post discusses about creating a custom lookup field on a dialog.Following are the methods and code required to achieve the purpose.(Assuming the class is extending the RunbaseBatch) –> A lookup method is required in the first place. Below is the sample code to lookup the exchange rates.private void exchRate_Lookup(FormStringControl _control){SysTableLookup sysTableLookUp;QueryBuildDataSource qbds;Query query = … Continue reading D365FFO – AX – X++ – Custom Lookup for a dialog field