AX / D365FO – How to get value of FormReferenceGroupControl

To get the RecId of the FormReferenceGroupControl FormReferenceGroupControl referenceGroupControl; referenceGroupControl = element.control(element.controlId(formControlStr(ReferenceGroupTestingForm, ReviewHeaderInfo_CustomsRepRefGroup))) as FormReferenceGroupControl; referenceGroupControl.value(); //returns the RecId of the DirPerson table displayed. To get the Display value which is substituted to the user instead of the underlying RecId value stored in the database, do this: FormReferenceGroupControl referenceGroupControl; referenceGroupControl = element.control(element.controlId(formControlStr(ReferenceGroupTestingForm, ReviewHeaderInfo_CustomsRepRefGroup))) as FormReferenceGroupControl; //this gets … Continue reading AX / D365FO – How to get value of FormReferenceGroupControl

AX / D365FO – How to use Reference Group in a form in AX 2012

Reference Group control of a form will show the User needed fields like Name or any other specific field instead of a RecId but will save only RecId upon user selection in the backend. To use this Feature we need to use Replacement Key of a Table.Ø  Index Specified in Replacement key of a table will … Continue reading AX / D365FO – How to use Reference Group in a form in AX 2012

AX – D365FO – Create Reference and Replacement groups

First create a new Table "Al0VendorSearchCriteria" AccounNum is take from VendTable.accountNumStatesId is of type Int64 Al0VendorActicivityId is of type Int64 (taken from another custom table that could be seen in my article : https://d365ffo.com/2021/07/04/ax-d365fo-create-a-simple-and-detail-tree-form/ Create a relation betewwn Al0VendorSearchCriteria and Al0Activity Create Extended datat types for the 2 fields Create a new form of type … Continue reading AX – D365FO – Create Reference and Replacement groups

AX – D365FO – Add a new Reference group parameter in a Setup Form

In this example we'll explain how to add a new parameter in the "Project and Sourcing" menu, under "Procurement and sourcing parameters" Form Expected result : This is te expected result we want to obtain To do this in X++ : Create an extension of the "VendorInformationFormConfiguration" table Add a new field "Al0IssuerPartyDefaultValue" of type … Continue reading AX – D365FO – Add a new Reference group parameter in a Setup Form