Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Dependent Dropdown

Posted on by Microsoft Employee

How to use dependent dropdown in NAV 2013R2?

e.g. when we select state (like west bengal, madhya pradesh, assam, etc), city name is displayed corresponding to state.

my task is to select degree first then select semester

if degree is b.tech then semester will be 1-8

if degree is mba then semester will be 1-6

*This post is locked for comments

  • Suggested answer
    jcastro Profile Picture
    jcastro 2,245 on at
    RE: Dependent Dropdown

    What I understood is that certain degrees can only be "done" in certain semesters.

    If this is the case you should have a table named "Degree Semester" or something like that which contains at least two fields: "Degree Code","Semester" (both primary key).

    If you have something like this, you could solve this by creating a table relation in the Semester field that is linked to that table and filtered by the Degree previously chosen. Something like this in the TableRelation of the Semester field:

    "Degree Semester"."Semester" WHERE ("Degree Code"=FIELD("Degree Code"))

     

    This would only show those semesters that match the degree.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Dependent Dropdown

    For your requirement you need to have two tables

    1. Degree (With Degree Value)

    2. Semester (With fields being Degree and Semester value)

    Then as Mohana mentioned on the table where you add Semester field set table relation to Semester table and use the condition.

    For example check the customer table, Post Code field it depends the value based on Country/Region Code

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,137 Super User 2024 Season 2 on at
    RE: Dependent Dropdown

    Semester field should have a table relation with table filter with Degree.

    You can check same example as reference in customer table

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans