ContainerElement.pasteElement (Method)

Inserts the copied element into the specified container element at the specified position.

Returns:

ControlID (integer)

Arguments:

Name Type Required Description
pageID RealPageID_NonBaseTemplate Required The ID of the page or soft template on which the container element resides.
containerInstanceID ContainerElementInstanceID Required The container element's instance ID.
position InsertAtPosition Optional. Defaults to 'Bottom'. The position within the container at which CommonSpot inserts the element. Your options are 'Top' or 'Bottom'.

Context:

License Requirements (none)
Permission Requirements element:Author
Deny Context None
Require Context AuthoringEnabled
Author Lock Required
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
409  
1000301 The element $1 does not exist on the specified page.
1000308 Because the clipboard is empty, no information could be pasted.

Notes:

None