Siebel CRM Desktop for Microsoft Outlook Administration Guide > Customizing Picklists > Process of Creating Dynamic Picklists That Use a SalesBook Control >
Modifying the Business Logic and Testing Your Work
This task is a step in Process of Creating Dynamic Picklists That Use a SalesBook Control. In this topic you modify the business logic and test your work. To modify the business logic and test your work
- Use a JavaScript editor to open the business_logic.js file.
- Locate the following function:
create_siebel_meta_scheme2
This function sets up the relationships between objects.
- Locate the following section in the create_siebel_meta_scheme2 function:
//Direct Links
For more information, see Types of Links You Can Specify.
- Create the link definition for the Fulfillment Center object relation with the Opportunity object. You add the following code to the Direct Links section:
function add_direct_link(from_type, to_type, link_field, required_link, view_ids, refresh_required, status, primary_on_parent)
where:
add_direct_link("Opportunity", "Fulfillment Center", "JVD Fulfillment Center Id", false, ["lookup:fulfillment-centers"], true, "OpportunityStatus");
- Locate the following function:
opportunity_form
To enable the autocomplete list and salesbook button on the form, you add JavaScript as part of the opportunity_form function.
- Locate the following section in the opportunity_form function:
//CONTROLS EVENTS
- Add the following code to the section that you located in Step 6:
register_autocomplete_control(ctx, "Fulfillment Center","jvd_fulfillment_center_id","btn_fulfillment_center_select");
This code does the following:
- Upload and publish your work. Do Uploading and Testing Your Static Picklist.
- Test your work:
- Open the client and then navigate to the opportunity form.
- Make sure the form displays the Center picklist.
- Type text into the Center picklist.
As you enter each character of text the Center picklist must display different values in the auto complete entries. These entries must change according to the character you enter. For example, if you enter the letter B, then the field must display entries that begin with the letter B.
- Click the button that opens the SalesBook dialog box.
CRM Desktop must display the SalesBook dialog box. This dialog box must include a text entry field that allows the user to enter the name of the fulfillment center. It must also include a list of fulfillment centers. For example:
- Concord Fulfillment Center
- Copy Center
- Marketing Department
- And so on
|