How to Remove fields from Lookup form?

Hi All,

I want to Hide/Remove some fields in LookUp form(i.e After Clicking the LookUp button of a field)


From Above LookUp form i want to hide “Name”, “Search Name”.

Thanks In Advance [:)]


Remove those fields from AutoLookup group

Tables → fieldgroup → Auto lookup

Hi Roshan,

That table doesn’t contain any fields in it’s AutoLookup group

Other than this any Idea

Thanks for your Reply…[:)]

If There is no AutoLookup

I think those fields coming from Index.

Once see the index what are the fields havin index…

Hi Bobby,

Just remove the Fields from CustTable AutoLookup Field Group.

Remove Name and Name Alias Field from CustTAble AutoLookup Field Grup.

But it will impact on all the Customer lookup in AX application.

If you want to remove these two fields for Particular Free Text Invoice then you must have to Override Lookup methos on the Free TExt Invoice Form,

Might this will help you.



Hi Janak,

Theanks for your Reply…

Can you give me an example LookUp Method on above situation.

Thanks in Advance…[:)]

Hi Janak,

Can you give me an example LookUp Method on above situation

Hi Bobby,

Hope this may give you some idea.

public void lookup(FormControl _formControl, str _filterStr)
SysTableLookup oSysTableLookup;
Query oQuery;

oSysTableLookup = SysTableLookup::newParameters(tablenum(CustTable), _formControl);
oSysTableLookup.addLookupfield(fieldnum(CustTable, AccountNum));
oSysTableLookup.addLookupfield(fieldnum(CustTable, OurAccountNum));
oSysTableLookup.addLookupfield(fieldnum(CustTable, Phone));

oQuery = new Query();

oQuery.dataSourceTable(tablenum(CustTable)).addRange(fieldnum(CustTable, AccountNum));




Hi Bobby,

Try to performformlookup in the datasource overridden method…