View
219
Download
0
Category
Preview:
Citation preview
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
1/22
Business Layer Configuration: New Business Components and Fields 1 of 22
Siebel 8.0 Essentials
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
2/22
Module 29: Business Layer Configuration:New Business Components and Fields
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
3/22
Business Layer Configuration: New Business Components and Fields 3 of 22
Module Objectives
To create a new business component
To add a business component to a business object
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
4/22
Business Layer Configuration: New Business Components and Fields 4 of 22
Introduction
Siebel-provided business components cover most of the commonly
used business entities, but not all the possibilities
Example: An organization might want to capture personal data for
their contacts, like:
What colleges the contact attended, including information such as nameof college, major field of study, university, etc
What are the contacts culinary likes and dislikes
Capturing this kind of information may require:
Multiple fields to capture the details
1:M or M:M relationship with the parent
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
5/22
Business Layer Configuration: New Business Components and Fields 5 of 22
Solution Create New BCs
To capture such information, create new BCs
For example, for the Contact parent BC, create College and Tastes child
BCs
These BCs may be based on tables supplied by Oracle
Standard
Extension 1:M
M:M
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
6/22
Business Layer Configuration: New Business Components and Fields 6 of 22
1:M Relationship with Existing Table
College and Tastes have a 1:M relationship with the Contact BC
Hence, two new BCs are required, one for College attended and the other
for culinary Tastes
When creating a BC which has a 1:M relationship with the parent BC,
use a 1:M extension table
College Contact Tastes
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
7/22Business Layer Configuration: New Business Components and Fields 7 of 22
Standard 1:M Extension Tables
Many business components have standard 1:M extension tables
defined for them The extension table has name derived as parent table name
appended with _XMPredefined
ATTRIB
columns of
varying types
NAME
column stores
the name of
the child
entityPAR_ROW_ID
column stores
foreign key to
ROW_ID in main
table
TYPE
identifies the
child BC
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
8/22Business Layer Configuration: New Business Components and Fields 8 of 22
User Key for Extension Table
NAME, PAR_ROW_ID and TYPE serve as the user key for theextension table
These three are required columns. Their combined value must be unique for
a record
ROW_ID
NAME
PAR_ROW_ID
TYPE
S_OPTY_XM
User Key
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
9/22Business Layer Configuration: New Business Components and Fields 9 of 22
Business Component Wizard
The Business Component wizard is used to create a new business
component Select File > New Object, then select BusComp and click OK
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
10/22Business Layer Configuration: New Business Components and Fields 10 of 22
Business Component Wizard Inputs
The following inputs are required for the business component wizard:
The project the new BC will be a part of
Name of the new BC
The BCs table name
Fields that will be part of the BC
Selected in the wizard by specifying Table Column and then the fieldname
Specify TYPE column and relate it to Type field
Specify PAR_ROW_ID column and relate it to Id field
Specify NAME column and relate it to Name field
For additional data, use ATTRIB columns
Use a separate column for each field
Columns are limited by the table one selects for the BC
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
11/22Business Layer Configuration: New Business Components and Fields 11 of 22
Business Component Wizard Outputs
The business component wizard creates:
A business component object and its child object definitionsFields and relates them to table columns
New BC
object
definition
created
New fields
created and
related to table
columns
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
12/22Business Layer Configuration: New Business Components and Fields 12 of 22
Set the Pre-Default Value
Predefault value automatically assigns a value to a field for a new
record
For extension tables, set the Predefault Value property of the Type field to
the value specified in the Search Specification of the BC
Can be used to ensure that the user key is populated
Matches value
in BC Search
Specification
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
13/22Business Layer Configuration: New Business Components and Fields 13 of 22
Set Search Specification
The search specification is set to match the unique TYPE value for
the BCSpecifies the records to be retrieved by the BC
Typically used with extension tables
Supports the case where multiple BCs are based on the same extension
table
Only records ofTYPE = College
are retrieved
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
14/22Business Layer Configuration: New Business Components and Fields 14 of 22
Multiple Child Business Components
The same table can be used to map multiple user-defined child BCs
Each BC has a unique TYPE value
Each BC retrieves only those records with its TYPE value
College
Type = College
Tastes
Type = Taste
ROW_ID
NAME
TYPE
PAR_ROW_ID
S_CONTACT_XM
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
15/22Business Layer Configuration: New Business Components and Fields 15 of 22
Post-Creation Tasks
1. Relate Child and Parent BCs
2. Reference Business Component in Business Object
3. Enable Display Data in UI
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
16/22Business Layer Configuration: New Business Components and Fields 16 of 22
Relate Child and Parent BCs
Associate the newly created child BC to the parent BC:
To do this, create a link definition to relate child and parent records
Contact
College Tastes
Parent
Child Child
Contact/College
Link
Contact/Tastes
Link
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
17/22Business Layer Configuration: New Business Components and Fields 17 of 22
Relate Child and Parent BCs
Create a separate link for each parent/child
relationshipContact/College
Contact/Tastes
This link is specified in the business object
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
18/22Business Layer Configuration: New Business Components and Fields 18 of 22
Reference Business Component in Business Object
For each new BC created, create a Business Object Component
definitionThe business object for the parent BC is to be used
The Link property is to be setParent BC
Child BC Link
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
19/22Business Layer Configuration: New Business Components and Fields 19 of 22
Enable Display Data in UI
To enable data display from the BC in the UI, build applets and viewsas required
Note: The Type field must not be displayed in the UI to prevent users from
changing its value
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
20/22
Business Layer Configuration: New Business Components and Fields 20 of 22
Creating a Standalone Business Component
A companys business logic may require creation of a new table in thedatabase
A standalone BC is then created whose fields reference the columns of this
new table
To create a standalone business component:
Create a new table to hold the BC dataCreate columns for the table
Create a new BC and add fields that reference the created table columns
Create a new business object and add the new BC as its component
Enable data display in the UI
Standalone BCs are based on standalone tables and have no
relationship with other BCs and tables
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
21/22
Business Layer Configuration: New Business Components and Fields 21 of 22
Module Highlights
For capturing new information, create a new BC as a child of anexisting BC
May use extension tables with name ending with _XM
When using extension tables, the same table can be used to map to
multiple child BCs
Data retrieved depends on the value in field Type, which is uniqueSpecify properties on BC and fields
Include required fields like Type and Name
Create a link definition to relate child with parent BC
Add the BC to a BO and then create applets and views to display data
Create a standalone BC based on newly created table in database, ifnecessary
7/30/2019 Module 30 Business Layer Configuration New BCs and Fields
22/22
B siness La er Config ration Ne B siness Components and Fields
Lab
In the lab, you will:
Create and display a new business component based on a 1:M extension
table
Recommended