Skip to content

InsertDynamicObject - cWebDynamicObjectContainer

Inserts a dynamic object and child objects after the given object

Type: Procedure

Parameters

Parameter Type Description
sDynamicObjectId String Dynamic object Id
sInsertAfter String Object to insert after

Syntax

Procedure InsertDynamicObject String sDynamicObjectId String sInsertAfter

Call Example

Send InsertDynamicObject sDynamicObjectId sInsertAfter

Description

Inserts a dynamic object and child objects after the given sInsertAfter object. The inserted object inherits the parent of the object it is inserted after.

Sample

This sample inserts dynamic object oGroup2 after dynamic object oGroup1.

Get CreateDynamicObject of oContainer (RefClass(cWebGroup)) "oGroup2" "" to hoGroup2
Send InitDynamicProp of hoGroup "piColumnCount" 8
Get CreateDynamicObject of oContainer (RefClass(cWebForm)) "oForm" "oGroup2" to hoForm
Send InitDynamicProp of hoForm "piColumnSpan" 8 
Send InitDynamicProp of hoForm "psLabel" "My form"
Send InsertDynamicObject of oContainer "oGroup2" "oGroup1"