Skip to content

CreateDynamicObject - cWebDynamicObjectContainer

Creates a new dynamic web object

Type: Function
Return Data Type: Handle

Parameters

Parameter Type Description
iClassId Integer ID of the class to be used for this object (like RefClass(cWebButton).
sDynamicObjectId String Unique identifier for the dynamic object within this container.
sParentId String Dynamic object id of the parent object, if the object should be at the root of the container then pass an empty string "".

Syntax

Function CreateDynamicObject Integer iClassId String sDynamicObjectId String sParentId Returns Handle

Call Example

Get CreateDynamicObject iClassId sDynamicObjectId sParentId to HandleVariable

Description

Create a new dynamic object based on the provided details.

The object will be instantiated immediately, and the returned handle can be used to do further configuration.

Note that the created object will not be rendered automatically. For that either Activate or InsertDynamicObject / AppendDynamicObject / PrependDynamicObject must be used.

When using Activate then the order in which the objects are created will correspond to the order in which they will be displayed (when using the column layout).

Sample

Get CreateDynamicObject of oContainer (RefClass(cMyWebButton)) "oMyWebButton" "" to hoObj

Return Value

Object handle of the dynamic object