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, ...
Suggested Answer

Dropdown List box constrained/Filtered by another Dropdown List Box

(0) ShareShare
ReportReport
Posted on by 32

Hi,

I have a form that has a number of dropdown lists. Some of these dopdown lists contain a LOT of records.

I want to be able to filter  Dropdown2 depending upon what has been chosen in Dropdown1.

Example

I choose  'Project003'   from Dropdown1

I  only see two options available in Dropdown2 (not the full 20 or whatever) obviously there would have to be be some kind of relationship table where I can filter this

I am not an X++ developer but have done something like this in the past, different language, where I had to create Xref tables creating the cross references.

Anyone any simple ideas 

As I say I am thinking extend form in X++ Aot and use this new Xref table as a filter when the Dropdown list is being rendered.

Would be rather nice if I could do a saved view in the Dropdown List where the user could pin it as a default.

Any help appreciated

Thanks 

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi Siopold,

    You need to override the lookup method of dropdown2 control and add range to that with value of dropdown1 control.

    Refer to the below link which explains about the lookup methods and filtering lookups values.

    dynamics365musings.com/.../

    Thanks,

    Girish S.

  • Suggested answer
    Arunraj Rajasekar Profile Picture
    1,743 on at

    Hi,

    i assume, both the dropdown are available in same screen. In x++ we build dropdown using query (please see the link below for sample). if you want the second dropdown to render based on values picked from first drop down, the pass the value as a range to query.

    learn.microsoft.com/.../how-to-add-a-lookup-form-to-a-control

  • Siopold Profile Picture
    32 on at

    Thanks so much for your help will have a look and implement

  • Siopold Profile Picture
    32 on at

    Thank you yes both drop down s on same scre en will have a look at the link l appreciate the help

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
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans