Remi Boigey, Partner Technical Consultant @ Microsoft France, did a new silverlight application in order to create Dependent Picklist by using a user friendly interface.
Solution Features
Install the solution
Step 1 : Save the CRM solution on your disk - Download here
Step 2 : Import the solution – Settings / Solutions / Import
Click on Browse Button and select the solution DependentPickLists_1_0_0_0_managed.zip.
Click on next buttons and close the form.
Refresh the web page.
Test the solution
In order to test the solution, you can use the Case entity with the two OptionSet fields: Case Type and Priority. We will filter them as displayed in the following table:
Case Type Priority Question High Normal Low Problem High Normal Request Normal Low
Case Type
Priority
Question
High
Normal
Low
Problem
When you finalized the mapping, click on ‘Get script’ button.
In order to use our script, you need to add a XML web ressource to the targeted entity.
Step 1
Step 2
- Function: SDK.DependentOptionSet.init - Check ‘Pass execution context as first parameter’ ‘new_Case_DependentOptionSetConfig’ The parameter is the schema name of the Web ressource we just created.
- Function: SDK.DependentOptionSet.init - Check ‘Pass execution context as first parameter’
- Double click on the ‘Case Type"’ Field
- Select the Events Tab - Click on Add under the Event Handlers section Function: SDK.DependentOptionSet.filterDependentField Don’t Check ‘Pass execution context as first parameter’ ‘casetypecode’,’prioritycode’ Parameters are the schema name of the option set fields..
- Select the Events Tab
- Click on Add under the Event Handlers section