Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Populate the lookup field value based on other column lookup fields if checkbox is yes

(0) ShareShare
ReportReport
Posted on by 110

Hi all,

I'm new to AX,

My question is, in the SalesTable Form, i have 2 customised fields(Destination port and Fumigation number) both are lookup fields.

pastedimage1635123862638v4.png

If the destination port(fumigation is yes/checked) then the Fumigation number is set to FUM-Yes, 

If the destination port(fumigation is no/unchecked) then the Fumigation number is set to FUM-No, 

pastedimage1635124116836v5.png

i tried to use modified event of the field, but i'm not getting the correct logic. can someone help me with code.,

Thank you!

  • Martin Dráb Profile Picture
    Martin Dráb 231,407 Most Valuable Professional on at
    RE: Populate the lookup field value based on other column lookup fields if checkbox is yes

    If "Fumigation number" has just two values, why don't you use a boolean field / checkbox control? Then you could filter "Destination port" just by setting a correct table relation, without writing any code.

    If code is needed, you need to create a lookup method for "Destination port" and add a query range for "Fumigation" field, where you'll use the value of "Fumigation number" field. For example, look at How To Override An Existing Lookup Method: Event Handler.

    By the way, please ask questions about D365FO in a D365FO. e.g. Dynamics 365 Finance.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans