Bookshelf Home | Contents | Index | Search | PDF |
Siebel Tools Reference > Business Objects Layer > Joins >
Using a Predefault Value for a Join Field
Since a join field cannot be updated, you cannot use a predefault value in the regular way as a default field value if nothing is specified when a record is inserted. You can use a predefault value for a join field to show the join field value immediately as the new record is being inserted.
To use a predefault value for a join field
The following procedure uses the Opportunity Product business component as an example.
- Define a join to S_OPTY in the Opportunity Product business component.
- Define two new fields based on the join to show Opportunity Sales Stage and Name.
- Add the two fields to the Opportunity Product applet.
- Compile and test using the standard Opportunities—Products view.
- Set the Predefault properties of the new fields to Parent: 'ParentBusinessComponent.JoinedField'.
For example, predefault Opportunity Name with Parent: 'Opportunity.Name' and predefault Opportunity Sales Stage with Parent: 'Opportunity.Sales Stage'.
- Set the Link Specification property of the joined fields (Name and Sales Stage) in the parent business component to TRUE.
- Compile and then add a new product for an Opportunity.
The join fields are populated immediately, and you do not need to requery the applet to see them.
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Tools Reference Published: 20 October 2003 |