Sunday, March 8, 2020

Filter LocationID lookup by name D365FO

We will see how to filter location id by name.
Add new string in table and set any name is my case name is (InventLocation) as shown in image below




Create a new relation with InventLocation Table and set the relation properties.
























Create a new form for lookup set the design pattern Lookup - Basic. In data source add the IventLocation table.
Add grid in the form and add fields.












Override the form run method and write the code in it













Now add the field in original form to show the lookup. Override Lookup and resolveAmbiguousReference method on string control (A_Student_InventLocation)










Now write the code in lookup and resolveAmbiguousReference  method

Lookup Method














resolveAmbiguousReference  Method









After this build and sync the project and you will get appropriate result as shown below.
















For more information please see the following link
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/user-interface/contextual-data-entry-lookups


2 comments:

  1. Bro, I want to learn AR, AP and Supply chain Modules, could you please help or guide?

    ReplyDelete
    Replies
    1. Hi Fahad,

      Thanks for visiting my blog. There are so many things in one module.Tell me the specific topic, I will write blog on it. Please subscribe my blog for new posts.

      Delete

Please do not add any spam link in the comment box.