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
Bro, I want to learn AR, AP and Supply chain Modules, could you please help or guide?
ReplyDeleteHi Fahad,
DeleteThanks 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.