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 :
Microsoft Dynamics CRM (Archived)

dependent option sets. I am not able to fetch options on the child option set field on selecting parent option set field.

(0) ShareShare
ReportReport
Posted on by

hi all,

     I am following the steps in this below link to create two dependent option  sets.

msdn.microsoft.com/.../gg594433.aspx

when I select an option in the parent option set field .there are no options in the child dependent field to select. please help me

thanks

*This post is locked for comments

I have the same question (0)
  • naZir Profile Picture
    850 on at

    Did you pass the mentioned arguments while registering events for each library?

  • Community Member Profile Picture
    on at

    Hi Md Ahmed,

    I have given the arguments. on empty parent field ,child dependent field is locked. and the lock gets released once I choose options in parent field.but I cant find any options on child field and it is empty.

    thank you

  • naZir Profile Picture
    850 on at

    Post your code here .. so that we can see

    It should be like this

    [

     {

         "parent": "sample_category",

         "child": "sample_subcategory",

         "options": {

             "727000000": [

                 "727000000",

                 "727000001",

                 "727000002"

             ],

             "727000001": [

                 "727000003",

                 "727000004",

                 "727000005",

                 "727000006",

                 "727000007"

             ]

         }

     },

     {

         "parent": "sample_subcategory",

         "child": "sample_type",

         "options": {

             "727000000": [

                 "727000000",

                 "727000002",

                 "727000003"

             ],

             "727000001": [

                 "727000004",

                 "727000005",

                 "727000006"

             ],

             "727000002": [

                 "727000007",

                 "727000008",

                 "727000009",

                 "727000010"

             ],

             "727000003": [

                 "727000011",

                 "727000012",

                 "727000013",

                 "727000014"

             ],

             "727000004": [

                 "727000015",

                 "727000016",

                 "727000017",

                 "727000018"

             ],

             "727000005": [

                 "727000019",

                 "727000020",

                 "727000021",

                 "727000022"

             ],

             "727000006": [

                 "727000023",

                 "727000024",

                 "727000025",

                 "727000026"

             ],

             "727000007": [

                 "727000027",

                 "727000028",

                 "727000029"

             ]

         }

     }

    ]

  • naZir Profile Picture
    850 on at

    [

     {

         "parent": "new_state",

         "child": "new_places",

         "options": {

             "100000000": [

                 "100000000",

                 "100000001",

                 "100000002"

             ],

             "100000001": [

                 "100000006",

                 "100000007",

                 "100000008"

             ],

             "100000002": [

                 "100000003",

                 "100000004",

                 "100000005"

             ]

         }

     }

    ]

  • Community Member Profile Picture
    on at

    I am using only two dependent option sets.

    pls check the below code

    [

     {

         "parent": "new_state",

         "child": "new_citiies",

         "options": {

             "100,000,000": [

                 "100,000,000",

                 "100,000,001"

             ],

             "100,000,001": [

                 "100,000,002",

                 "100,000,003",

                 "100,000,004",

                 "100,000,005"

             ]

         }

     }

    ]

     

    thank you

  • Community Member Profile Picture
    on at

          hi Ahmed                                                         

    Screenshot-_2800_163_2900_.png

    please check this screenshot. this is what happening when I select option in the field.

  • naZir Profile Picture
    850 on at

    Please try this

    Check the Schehma name

    [

    {

        "parent": "new_state",

        "child": "new_citiies",

        "options": {

            "100000000": [

                "100000000",

                "100000001"

            ],

            "100000001": [

                "100000002",

                "100000003",

                "100000004",

                "100000005"

            ]

        }

    }

    ]

  • naZir Profile Picture
    850 on at

    6862.2.PNG

    Onchange of state you should call this function and pass these 2 arguments

    6862.2.PNG

  • Verified answer
    naZir Profile Picture
    850 on at

    Remove those commas (100,000,001->100000001) for all

  • Community Member Profile Picture
    on at

    Hi Ahmed,

    I removed those commas and it works now. Thanks a lot. your help meant a lot :)

    Thank you

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans