Dynamic Objects

Dynamic objects are “placeholder” objects in an Image Template file that can be dynamically replaced when Corda Server™ publishes the Corda® image. This is particularly useful for dynamically swapping maps into an Image Template file, instead of creating a new Image Template file for every map you want to display.

Use either ITXML or PCScript to replace the contents of a dynamic object with the contents of any object defined in any accessible Image Template file.

ITXML

To replace a dynamic object using ITXML, modify cit:dynamic-object and override the file-name and object-name attributes. More information about this object is available in the Corda 7 Object Reference in Corda Builder™.

PCScript

To replace a dynamic object in PCScript, use the dynamic.setITXMLAttributes method to set the dynamic object’s file-name and object-name attributes.

For more information on creating and configuring dynamic objects, see Dynamic Objects in the Corda Builder User Guide.