AddContainerAttribute method: IBInfo class

Syntax

AddContainerAttribute(Name, Value)

Description

Use this method to add a container attribute by specifying an attribute name-value pair.

You can add attributes to container messages that contain rowset-based message parts to provide integration partners with data and information, without adding the information to the message definition.

Parameters

Parameter Description

Name

Specifies the container attribute name as a string.

Value

Specifies the container attribute value as a string.

Returns

A Boolean value: True if the container attribute was added successfully, False otherwise..

Example

Local Message &MSG;
Local Rowset &RS;
Local boolean &Bo;

&RS = GetLevel0();
&MSG = CreateMessage(Operation.QE_CONT_ATTRB);

&Bo = &MSG.IBInfo.AddContainerAttribute("Test1", "1");
&Bo = &MSG.IBInfo.AddContainerAttribute("Test2", "10");
&Bo = &MSG.IBInfo.AddContainerAttribute("Test3", "100");

&MSG.CopyPartRowset(1, &RS);

%IntBroker.Publish(&MSG);