Configuring Siebel eBusiness Applications > Configuring 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.

  1. Define a join to S_OPTY in the Opportunity Product business component.
  2. Define two new fields based on the join to show Opportunity Sales Stage and Name.
  3. Add the two fields to the Opportunity Product applet.
  4. Compile and test using the standard Opportunities—Products view.
    1. Add a new Product for an Opportunity.
    2. Note that the join fields are not populated until you requery the applet.

      (However, the source field—Oppty Id—for the join is populated.)

  5. 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'.

  6. Set the Link Specification property of the joined fields (Name and Sales Stage) in the parent business component to TRUE.
  7. 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.

Configuring Siebel eBusiness Applications