Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

Posted on by Microsoft Employee

hi 

   please do suggest me.it would be of lot of help.

thank you

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

    hi akanksha,
          please check this creenshot. I jus changed label names and specified the same in xml file. I also used proper schema for out of the box lead entity which is "lead". please suggest if we can achieve same functionality by any other way (except lookups and creating entities). pls help 

    thank you

    Screenshot-_2800_162_2900_.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

    hi 

     akanksha I have given proper schema name and label name for option sets. and I am also sure abt it because child field is getting locked onload of form (which tells xml has been mapped properly) . but child field is not releasing the lock on selection of option on option sets in parentfield. how can I know whats wrong and why child is not releasing its lock on selection.

  • Suggested answer
    Akanksha Ranjan Profile Picture
    Akanksha Ranjan 460 on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.


    Hi Murli, 

    I have observed that the schema and label is not correct in the XML. 

    Please verify XML.

    You can refer this link : https://thabisomotloung.wordpress.com/2015/02/17/dependent-option-sets-in-ms-crm-2015/

    <DependentOptionSetConfig entity="Lead" > --write the correct schema--
     <ParentField id="new_state"
                  label="state">-- write the lable name not the display name--
      <DependentField id="new_city_"
                      label="city_" />
      <Option value="100,000,000"
              label="karnataka">
       <ShowOption value="100,000,000"
                   label="bangalore" />
       <ShowOption value="100,000,001"
                   label="mangalore" />
      </Option>
     
      <Option value="100,000,001"
              label="Andrha_Pradesh">
       <ShowOption value="100,000,002"
                   label="hyderabad" />
       <ShowOption value="100,000,003"
                   label="nellore" />
       <ShowOption value="100,000,004"
                   label="vishakpatnam" />
       <ShowOption value="100,000,005"
                   label="chittoor" />
      </Option>
     </ParentField>
    </DependentOptionSetConfig>

     

    <DependentOptionSetConfig entity="Lead" >
     <ParentField id="new_state"
                  label="state">
      <DependentField id="new_city_"
                      label="city_" />
      <Option value="100,000,000"
              label="karnataka">
       <ShowOption value="100,000,000"
                   label="bangalore" />
       <ShowOption value="100,000,001"
                   label="mangalore" />
      </Option>
     
      <Option value="100,000,001"
              label="Andrha_Pradesh">
       <ShowOption value="100,000,002"
                   label="hyderabad" />
       <ShowOption value="100,000,003"
                   label="nellore" />
       <ShowOption value="100,000,004"
                   label="vishakpatnam" />
       <ShowOption value="100,000,005"
                   label="chittoor" />
      </Option>
     </ParentField>
    </DependentOptionSetConfig>

     

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

    hi akanksha

     sorry I have shared same screenshot of city option set twice.this is one more.

    Screenshot-_2800_160_2900_.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

    HI akanksha,

    this is  my xml code and two option sets called state and city_ .

     <DependentOptionSetConfig entity="Lead" >
     <ParentField id="new_state"
                  label="state">
      <DependentField id="new_city_"
                      label="city_" />
      <Option value="100,000,000"
              label="karnataka">
       <ShowOption value="100,000,000"
                   label="bangalore" />
       <ShowOption value="100,000,001"
                   label="mangalore" />
      </Option>
     
      <Option value="100,000,001"
              label="Andrha_Pradesh">
       <ShowOption value="100,000,002"
                   label="hyderabad" />
       <ShowOption value="100,000,003"
                   label="nellore" />
       <ShowOption value="100,000,004"
                   label="vishakpatnam" />
       <ShowOption value="100,000,005"
                   label="chittoor" />
      </Option>
     </ParentField>
    </DependentOptionSetConfig>

     

    two option sets- state and city_

    Screenshot-_2800_161_2900_.png

    Screenshot-_2800_161_2900_.png

     

     

     

  • Suggested answer
    Akanksha Ranjan Profile Picture
    Akanksha Ranjan 460 on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

    Hi Murali,

    This error means that the mapping you have given in the XML is not correct.

    Please map the XML with correct schema and try again, if still doesn't help please share the screen shot.

    Thanks

    PS: Please mark the answer as verified if found helpful.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

    hi mohsin Ali ,

    I have followed the same steps given in your link and have configured properly.now when try to debug.i am getting source map error.do you know what it means.pls help

    thank you

  • Mohsin Ali Profile Picture
    Mohsin Ali 3,610 on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

    Please follow following walk-through this might give you better understanding of dependent option sets.

    balugajjala.wordpress.com/.../dependent-picklist-optionset-in-crm-2016

  • Mohsin Ali Profile Picture
    Mohsin Ali 3,610 on at
    RE: dependent option sets. I am using sdk.dependentoptionset.js sample code in sdk and have configured everything properly. but even after selecting parentfield option , childfield(dependentfield) lock is not releasing.

    Please follow following walk-through this might give you better understanding of dependent option sets.

    https://balugajjala.wordpress.com/2017/03/24/dependent-picklist-optionset-in-crm-2016/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    dependent option sets. I have used sdk dependent option set code and configured accordingly.when I select my option on parent field ,I am not able to choose the option at child option set(dependent option set) because field is locked.

    hi 

     when I try to debug the code.i am getting source map error.

    please help me.

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans