Wednesday, April 13, 2016

X++ code for Multiple Field Lookup to get all fields of a query in ax 2012

First create a table
Create a query with above table
Create  a Form using above Query as DataSource

Create a new String Edit field in Design and name it as Lookup ,its property should be auto declaration yes

public void init()
{
    SysLookupMultiSelectCtrl sysLookupMultiSelect;
    super();
    sysLookupMultiSelect = SysLookupMultiSelectCtrl::construct(element,Lookup,queryStr(parenchild));

}


Note: here parenchild is query name


No comments:

Post a Comment

Export a copy of the standard user acceptance testing (UAT) database

 Reference link: Export a copy of the standard user acceptance testing (UAT) database - Finance & Operations | Dynamics 365 | Microsoft ...