Notifications
Announcements
No record found.
Hi All,
In standard the item lookup , filter the records based on item id.
But i need to change it.
When the user search by Product Name it should be filtered in the item lookup.
How to achieve this.
Thanks.
Hi john,
Do you need to search both the id and the name in the lookup?
Or If just filter based on name, you can create lookup in D365FO using X++ following the link:
community.dynamics.com/.../how-to-create-lookup-in-d365fo-using-x-2133197305
regards
Hi Judy,
Thanks for the reply.
I need to filter the records based on product name in the ItemLookup.
User enter product name the lookup should be filtered.
You field is item id and not Item Name, if you need Item Name, you can also change the item id to Item Name field to display.
Best regards
The grid should contain the item id only.
Itemid field has this lookup control.
User can't remember all itemid.
So its better if the user enter product name in the grid, and the itemid lookup filter records based on the value entered by the user and return itemid in the grid.
You can create a lookup and use the value as a range. (SysQuery::ValueLike)
You can check the lookup method of the itemid field in your datasource of the form to modify lookup filter like this in your method:
queryBuildDataSourceInventTable.addRange(fieldNum(InventTable, ItemName)).value(strFmt(#ItemName,_filterStr));
Just refer to the method lookupItemsFromSourceId() of class named Catalog:
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional