Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Problem: Dependent OptionSet Form

(0) ShareShare
ReportReport
Posted on by 1,670

i created 2 picklist named "Pays" and "Region" in the lead entity, then i upload the xml file as web resources :

<DependentOptionSetConfig entity="lead" >
 <ParentField id="new_region_fr"
              label="Région">
  <DependentField id="new_departement"
                  label="Département" />
 
 <Option value="100000000" label="Alsace">
   <ShowOption value="100000000"
               label="Bas-Rhin" />
   <ShowOption value="100000001"
               label="Haut-Rhin" />
  </Option>

  <Option value="100000001" label="Aquitaine">
   <ShowOption value="100000002"
               label="Dordogne" />
   <ShowOption value="100000003"
               label="Gironde" />
  </Option>
 
 </ParentField>
</DependentOptionSetConfig>

i respected all steps in the link :

https://msdn.microsoft.com/en-us/library/gg594433.aspx


but, all value visible in the department !

any solution

*This post is locked for comments

  • Verified answer
    Ammar Zaied Profile Picture
    Ammar Zaied 1,670 on at
    RE: Problem: Dependent OptionSet Form

    Solution :

    In the Onload event for the form, configure the event handler to call the SDK.DependentOptionSet.init function and pass in the name of the XML web resource as a parameter. Use the field on the Handler Properties dialog box to enter: "sample_TicketDependentOptionSetConfig" not "sample_TicketDependentOptionSetConfig.xml"

    into the field Comma separated list of parameters that will be passed to the function.

    because "sample_TicketDependentOptionSetConfig.xml" can generate error "Server error 404 nto found "

  • Ammar Zaied Profile Picture
    Ammar Zaied 1,670 on at
    RE: Problem: Dependent OptionSet Form

    i added SDK.DependentOptionSet.js and SystemsOptionSetConfig.xml

    "404 Not Found" web resource not found !

    0677.Sans-titre.png

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans