Skip to content

Activate - cWebDynamicObjectContainer

Activates dynamic objects that have been created

Type: Procedure

Syntax

Procedure Activate

Call Example

Send Activate

Description

Activates newly created dynamic objects by sending them to client (and rendering them).

This call should be used if the container is empty, and all objects are freshly created using CreateDynamicObject.

If the container already contains rendered objects, then InsertDynamicObject, PrependDynamicObject or AppendDynamicObject should be used. Activate would be used when creating dynamic objects for the first time or after ResetContainer has been used.

Sample

This sample creates dynamic objects oGroup1 in a container (oContainer) that is currently empty.

Get CreateDynamicObject of oContainer (RefClass(cWebGroup)) "oGroup1" "" to hoGroup1
    Send InitDynamicProp of hoGroup1 "piColumnCount" 4  
    Send InitDynamicProp of hoGroup1 "psCaption" "GROUP1"  

    Send Activate