Bookshelf Home | Contents | Index | Search | PDF |
Product Administration Guide > Attributes with Business Component Domains >
Creating a Business Component Field Constraint
You can constrain the records that display in the pick applet based on a field that they have in common with the business component that starts the configuration session. This is similar to using Siebel Tools to constrain the display of records in a pick applet based on a field in the originating business component.
You do this by defining an additional PickMap UI property on an attribute. This additional UI property defines how to constrain the records in the pick applet specified in PickMap01. The constraint PickMap specifies the business component name and field to use to filter the records in the pick applet.
The Product Administrator has created a customizable product called Premier Service Package. This product has been assigned to a product class that has the attributes Account, Location, and Opportunity defined on it. These attributes have been added to a group in the Product UI Designer and will display in selection pages.
The Product Administrator wants users to be able to select an account name when configuring the product in a quote. When they do, the Account Administrator wants to automatically populate the Location attribute with the state in which the account is located.
In addition, the Product Administrator wants to constrain the pick applet to display only the accounts associated with the opportunity name displayed in the Quote Opportunity field. For example, if the opportunity name is Boeing, the pick applet would display all the Boeing accounts only.
To do this, the Product Administrator must define five UI properties on the Account attribute, as shown in Figure 6.
- PickList. Its value is PickList Account.
- PickApplet. Its value is Account Pick Applet.
- PickMap01. This UI property provides the name of the attribute and the business component field. Its value is an XML tag that has the following elements:
- Field = "Account". This is the attribute name.
- PickField = "Name". This is the business component field.
- PickMap02. This UI property defines an attribute that will receive its value automatically when the user selects a value for the primary attribute. In this case, the attribute is Location. The value of the UI property is an XML tag that has the following elements:
- Field = "Location". This is the attribute name.
- PickField = "State". This is the business component field.
- PickMap 03. This UI property filters the display of records in the pick applet to those having the same value as a field in the business component that starts the configuration session. The value of the UI property is an XML tag that has the following elements:
- Constrain = "Y". This notifies the system that the UI property defines a constraint.
- Field = "Quote.Opportunity". This is the business component name and field name that will be used as a filter.
- PickField = "Name". This is the pick business component field name that will be filtered.
The Account and Location attributes display with a text box next to them in the configuration selection pages. When the user clicks the select button for Account, a pick applet displays. It contains only the accounts that have the name specified in the Opportunity field of the quote that started the configuration session (Quote business component). When the user selects an account and clicks OK, the Account name is transferred to the Account field and the state name is transferred to the Location field.
Table 14 shows how to use the predefined UI properties to constrain the user's choices.
To use a field to constrain the user's choices
- Navigate to Product Administration.
- Select and lock the desired customizable product.
- Navigate to Customizable Product > User Interface Property Designer.
- Select the desired attribute.
- Define the UI properties as shown in Table 14.
Bookshelf Home | Contents | Index | Search | PDF |
Product Administration Guide, Version 7.5 Published: 18 April 2003 |