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 :
Small | Business Central, NAV, RMS
Suggested Answer

Dropdown List box constrained/Filtered by another Dropdown List Box

(0) ShareShare
ReportReport
Posted on by

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
    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
    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
    on at

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

  • Siopold Profile Picture
    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

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small | Business Central, NAV, RMS

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans