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 30

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 

  • Siopold Profile Picture
    30 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
    30 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,729 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,799 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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Test role Public

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Leaderboard

Product updates

Dynamics 365 release plans