Вы находитесь на странице: 1из 2

Deep Copying and Deletion User Properties

When you copy or delete a record, you can use the Deep user properties to propagate the change to child business components. For example, you can arrange to copy the detail records of a child business component from the original record to the new copied record of the parent business component. For purposes of these user properties, the application checks the following sources in the order given to determine the parent/child link to use: If the parent and child are the same business component, then the relationship must be defined by the Recursive Link user property set on the business component. The link that the Recursive Link user property specifies is used to determine child records. See also Recursive Link. If the Deep Copy/Delete Link user property is set on the current (parent) business component, then the link that the Deep Copy/Delete Link user property specifies to the child business component is used. See also Deep Copy/Delete Link. If the parent and child business components are of the same Siebel object, and the parent is the primary business component in the business object, then the application looks up the link listed for the parent to the child, if one exists. If the link exists, then it is listed by choosing Object Explorer > Business Object > Business Object Component in Siebel Tools. Under the applicable business object, the link displays in the Link column for the child business component in the Business Object Components list.

If none of the sources mentioned in this list provides a link between the parent and child business components, then the application determines whether a link named parent business component/child business component exists (for example, Opportunity/Revenue). If such a link exists, then the application uses that link. Deep Copy n This user property allows you to specify a child business component that should be copied when a user selects the Copy option. See also Deep Copy/Delete Link. Value The value for the Deep Copy n user property must be the name of a child business component for which a parent/child link is defined in one of the ways described in Deep Copying and Deletion User Properties. Usage The Deep Copy n user property allows child business components and their respective child business components to be copied automatically when selecting the Copy option. Normally, the Copy option only copies one level. This feature allows multiple levels to be copied like a cascade copy. To use Deep Copy, do the following: In the parent business component, create a user property for each child business component to be included in the deep copy. The child business component user properties are: Name: Deep Copy 1 Value: [Child BusComp Name] Name: Deep Copy 2 Value: [Child BusComp Name] Add a multivalue link in the parent business component for each child business component. Create a multivalue field in the parent business component from

each child business component. Set the No Copy attribute in the multivalue link to TRUE to avoid the SQL error "A Duplicate Record Exists" occurring. NOTE: Do not use Deep Copy when the parent-child relationship is many-to-many (M:M). For M:M relationships, set the No Copy attribute to FALSE in the link used for this parent-child relationship. Each business component in the Deep Copy chain takes care of its own children. The parent business component has Deep Copy properties for each of its direct children, and each child business component has Deep Copy properties for each of the relevant grandchildren. There is an analogous Deep Delete user property to do a deep cascade delete. Typically, use Deep Copy and Deep Delete together. See also About Setting Numbered Instances of a User Property. Business Component

Parent Object Type Functional Copying records Area

Вам также может понравиться