web
You’re offline. This is a read only version of the page.
close
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!

I have the same question (0)
  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans