Top Method Summary
Options Name Purpose
CHARACTER DuplicateObjectInstance (DuplicateObjectInstanceParameter) Creates a duplicate of the given object instance
INTEGER NewVerticalPosition (buffer) Returns the vertical position for the duplicated instance
INTEGER NextObjectSequence (character, character) Returns the next available ObjectSequence number for the given container and parent instance
SetModified (character) Sets the modified flag for the container Object Master of the duplicated instance
CHARACTER UniqueInstanceName (character) Returns a unique object instance name based on the name of the source instance


Method Detail
Top

CHARACTER DuplicateObjectInstance (DuplicateObjectInstanceParameter)

Purpose: Creates a duplicate of the given object instance
Notes: Does also create copies of the instance attribute values. The
new instance receives a unique instance name within the
container. When the instance carries a Y design attribute, the
duplicate is positioned below the other instances of the same
parent so that it does not fully overlap the source instance

Parameters:
poParameter Consultingwerk.SmartFramework.Repository.DuplicateObjectInstanceParameter
The DuplicateObjectInstanceParameter instance with the parameters for this method
Returns CHARACTER
The ObjectInstanceGuid of the new object instance
Top

INTEGER NewVerticalPosition (buffer)

Purpose: Returns the vertical position for the duplicated instance
Notes: Returns the position below the bottom-most sibling instance
(same parent instance and page) so that the duplicate does not
fully overlap the source instance. Returns ? when the source
instance does not carry a Y design attribute

Parameters:
phSourceInstance buffer
The buffer handle positioned on the source eSmartObjectInstance record
Returns INTEGER
The new Y position or ? when no repositioning should take place
Top

INTEGER NextObjectSequence (character, character)

Purpose: Returns the next available ObjectSequence number for the
given container and parent instance
Notes: Operates on the instances currently loaded into the
dsObjectMaster dataset

Parameters:
pcContainerObjectMasterGuid CHARACTER
The GUID of the container object master
pcParentInstanceGuid CHARACTER
The GUID of the parent instance
Returns INTEGER
The next available ObjectSequence value
Top

SetModified (character)

Purpose: Sets the modified flag for the container Object Master of the
duplicated instance
Notes:

Parameters:
pcMasterGuid CHARACTER
The GUID of the container object master
Top

CHARACTER UniqueInstanceName (character)

Purpose: Returns a unique object instance name based on the name of the
source instance
Notes: A numeric suffix of the source instance name is stripped before
probing for a free name, so that duplicating CustNum2 results in
CustNum3 rather than CustNum22. Operates on the instances
currently loaded into the dsObjectMaster dataset

Parameters:
pcInstanceName CHARACTER
The name of the source instance
Returns CHARACTER
The unique instance name for the duplicate


Temp-Table Detail


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       20.07.2026 16:08:13