Configuring Siebel Business Applications > Configuring Business Components, Links, and Business Objects > Configuring a Business Component Field >
Creating a Predefault Value for a Joined Business Component Field
To make sure a field contains a value when Siebel CRM inserts a new record, you can use a predefault value for a joined field. Siebel CRM cannot update a joined field. If a field does not include a value when Siebel CRM inserts a record, then you cannot use a predefault value as a default field value. This topic includes an example that creates a predefault value for a joined business component field. To create a predefault value for a joined business component field
- Create a join on the S_OPTY table in the Opportunity Product business component.
- Define two new fields that reference the join.
One field displays the Opportunity Sales Stage. The other field displays the Name.
- Add the two fields to the Opportunity Product applet.
- Compile all locked projects.
- Test you modifications:
- In the Siebel client, use the predefined Opportunities - Products view to add a new product for an opportunity.
Siebel CRM does not update the joined fields. Oppty Id contains the data that provides the source field for the join.
- Requery the applet.
Note that Siebel CRM now displays the values.
- In Siebel Tools, set the Predefault property of the Opportunity Name field using values from the following table.
|
|
Pre Default Value |
Parent:'Opportunity.Name' |
You must use the following format:
Parent:'Parent Business Component .Name of the Joined Field '
- In Siebel Tools, set the Predefault property of the Opportunity Sales Stage field using values from the following table.
|
|
Pre Default Value |
Parent: 'Opportunity.Sales Stage' |
- Set the Link Specification property of the Name and Sales Stage fields in the parent business component to TRUE.
- Compile all locked projects.
- Restart the Siebel client.
- In the Siebel client, add a new product for an Opportunity.
Note that Siebel CRM immediately enters data into the joined fields.
|