Siebel Public Sector Guide > Administering Siebel Public Sector > Adding New Serialization Rules >
Example 2 of Configuring Serialization
Your organization might want to serialize incident attachments by adding a Serial Number button to the Attachments view in the Incident List view of the Incidents screen. For more information about adding such a button to the user interface, see Adding Serial Number Buttons to the User Interface. Before users can successfully use this button however, administrators must perform some configuration. Perform the instructions in the following procedures to allow serialization of incident attachments. To allow serialization of incident attachments by an Incident Attachment Rule, perform the following tasks:
- Configuring Incident Attachment Serialization in Siebel Tools
- Adding an Incident Attachment Serialization Rule
Configuring Incident Attachment Serialization in Siebel Tools
Perform the following procedure to allow serialization on the PUB Incident Attachment business component. NOTE: If you add new columns to a table (or make other such schema changes to the Siebel database), then make sure that such changes are reflected in the Siebel database. For more information, see Using Siebel Tools.
You must configure the incident attachment table and business component. To configure the incident attachment table and business component
- Log in to Siebel Tools as an administrator.
- Navigate to Object Explorer, then Table, and query for the S_INCIDENT_ATT table.
- Create a new column record called SERIAL_NUM.
To get the correct values for this new column, refer to the values in the SERIAL_NUM column of the S_CASE table.
- Navigate to Object Explorer, then Business Component, and query for the PUB Incident Attachment business component.
- Navigate to Business Component, then Field, and create two new field records called Serial Number and Incident Attachment Number.
To get the correct values for these two fields, refer to the values in the Serial Number field and the Case Num field of the HLS Case business component. In the Calculated Value column of the Incident Attachment Number field, enter RowIdToRowIdNum([Id]).
- Select the Force Active check box for the Incident Id field.
- Navigate to Business Component, the Business Component User Prop, and create six new user property records with the following values and expressions.
|
|
Named Method 1 |
"GenerateSerialNumber", "INVOKE", "PUB Incident Attachment", "WriteRecord" |
Named Method 2 |
"GenerateSerialNumber", "INVOKESVC", "PUB Incident Attachment", "PUB Case Serialization Service", "SetSerialNumber", "Operation", "Generate", "BO Name", "PUB HLS Incident", "BC Name", "PUB Incident Attachment", "Id", "[Id]", "Parent BC Name", "PUB HLS Incident", "Parent Id", "ParentFieldValue('Id')" |
Named Method 3 |
"GenerateSerialNumber", "INVOKE", "PUB Incident Attachment", "RefreshRecord" |
Named Method 4 |
"ReGenerateSerialNumber", "INVOKE", "PUB Incident Attachment", "WriteRecord" |
Named Method 5 |
"ReGenerateSerialNumber", "INVOKESVC", "PUB Incident Attachment", "PUB Case Serialization Service", "SetSerialNumber", "Operation", "ReGenerate", "BO Name", "PUB HLS Incident", "BC Name", "PUB Incident Attachment", "Id", "[Id]", "Parent BC Name", "PUB HLS Incident", "Parent Id", "ParentFieldValue('Id')" |
Named Method 6 |
"ReGenerateSerialNumber", "INVOKE", "PUB Incident Attachment", "RefreshRecord" |
- Compile the edited projects and replace the Siebel Repository File.
Adding an Incident Attachment Serialization Rule
Perform the following procedure to add a new serialization rule to determine the format for the incident attachment serial numbers. For more information, see Creating Serialization Rule Records. To add a rule for incident attachment serialization
- Navigate to the Administration - Case screen, then the Serialization Rules view.
- In the Serialization Rules list, create a new record with the following values.
|
|
Name |
Incident Attachment Rule |
Business Object |
PUB HLS Incident |
Business Component |
PUB Incident Attachment |
- Scroll down to the Attributes list, and create new records with the following values.
|
|
|
Record 1 |
Sequence |
1 |
Type |
Parent Serial Number |
Record 2 |
Sequence |
2 |
Type |
Constant |
Constant Value |
- |
Record 3 |
Sequence |
3 |
Type |
Field |
Field Name |
Incident Attachment Number |
|