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 :
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)
  • Siopold Profile Picture
    32 on at
    RE: Dropdown List box constrained/Filtered by another Dropdown List Box

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

  • Siopold Profile Picture
    32 on at
    RE: Dropdown List box constrained/Filtered by another Dropdown List Box

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

  • Suggested answer
    Arunraj Rajasekar Profile Picture
    1,743 on at
    RE: Dropdown List box constrained/Filtered by another Dropdown List Box

    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

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Dropdown List box constrained/Filtered by another Dropdown List Box

    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.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 844 User Group Leader

#2
André Arnaud de Calavon Profile Picture

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

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 553

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans