Look up on form is not showing for a field while working when opening in table browser.

Hi All,

In Ax2012, I am facing the problem that i have created a field Form Type in the Table, and use the EDT FormType_IN for that field. Now i am able to look up the field if i see it from table browser. But the look up of that field is not showing on the form.

Please suggest me how to do it.

I also use the code for look up the field in the data source of that form, in the field look up of that datasource.

i code as below-

public void lookup(FormControl _formControl, str _filterStr)

{

//super(_formControl, _filterStr);

SysTableLookup sysTableLookup =

SysTableLookup::newParameters(tablenum(SalesTaxFormTypes_IN),_formControl,true);

Query query;

QueryBuildDataSource queryBuildDataSource;

;

sysTableLookup.addLookupfield(fieldnum(SalesTaxFormTypes_IN,FormType));

sysTableLookup.addLookupfield(fieldnum(SalesTaxFormTypes_IN,Description));

query = new Query();

queryBuildDataSource = query.addDataSource(tablenum(SalesTaxFormTypes_IN));

queryBuildDataSource.addSortField(fieldnum(SalesTaxFormTypes_IN,FormType));

//queryBuildDataSource.addRange(fieldnum(Dimensions,DimensionCode)).value(Dimension.valueStr());

sysTableLookup.parmQuery(query);

sysTableLookup.parmUseLookupValue(true);

sysTableLookup.performFormLookup();

}

Regards

Vijay Parashar

Hi All,

Don’t think on it more. i have get it resolved.

Thanks & Regards

Vijay