web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Filter Item Numbers in Purchase Requisition Based on Selected Mgf_Code

(0) ShareShare
ReportReport
Posted on by 9

In the Released Products form, a new field named Mgf_Code has been added to the header section. The values for this field will be selected manually for each item number.

In the Purchase Requisition form, while creating a new purchase requisition, the Mgf_Code must be selected from a dropdown. Based on the selected Mgf_Code, when choosing an item number in the line section, the item number dropdown should display only those item IDs that are associated with the selected Mgf_Code.

Note:  Mgf_code field is a customized field and data is manually given in custom form.

1. This is my custom form, where Mgf_Code records will be created.
 
2. In the Released products form, for every Item, the Mgf_Code is being selected from the dropdown.
 
3. For now, Mgf_Code ( MGF-01 ) has been mapped to these two Item Id's.
 
4. So now In Purchase Requisitions form, while we create new record, we select the Mgf_Code here.
 
5. After creating, in the Purchase Requisitions lines, when we add new line, the Item number dropdown should display only the Item Id's which is mapped to Mgf_Code.
( In our scenario, MGF-01 is mapped to Item Id AABT0001 and AABZ0001. So in the dropdown only these two Item Id's should appear. )
 
Approaches I have tried, 
* Used Item number field's lookup event handler but it's not working.
* Tried using PurchReqLine table extension where the standard lookup exists for Item number.
 
Looking forward for any support,
Thanks in advance.
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    299,022 Super User 2025 Season 2 on at
    Filter Item Numbers in Purchase Requisition Based on Selected Mgf_Code
    Hi,
     
    You mention that you tried 2 option. I do assume you added X++ coding for this. Have you checked with a debugger if your code got executed correctly? What exact X++ code did you add for your attempts? Was code written as table or form extension in your first attempt?

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 987

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 261 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 176 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans