CreateDynamicObject - cWebDynamicObjectContainer

Creates a new dynamic web object

Type: Function

Return Data Type: Handle

Parameters: Integer iClassId String sDynamicObjectId String sParentId

ParameterDescription
iClassIdID of the class to be used for this object (like RefClass(cWebButton).
sDynamicObjectIdUnique identifier for the dynamic object within this container.
sParentIdDynamic object id of the parent object, if the object should be at the root of the container then pass an empty string "".


Return Value

Object handle of the dynamic object


Syntax
Function CreateDynamicObject Integer iClassId String sDynamicObjectId String sParentId Returns Handle

Call: 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