GetNumberOfContainerAttributes method: IBInfo class
Syntax
GetNumberOfContainerAttributes()
Description
Use this method to return the number of container attributes in the IBInfo object.
Parameters
None
Returns
An integer representing the number of container attributes.
Example
&MSG = CreateMessage(Operation.FLIGHTPLAN);
&ret = &MSG.IBInfo.AddContainerAttribute("MESSAGE_STATUS", "good");
&ret = &MSG.IBInfo.AddContainerAttribute("MyAttribute", "abcd");
/* When attempting to read these attributes within an IB event (OnNotify, */
/* OnRequest etc.) one must first get a part rowset, this will load up the */
/* attributes into the message object from the xml. Here is an example of */
/* how to read the attributes from a message. */
&RS = &MSG.GetPartRowset(1);
&index = &MSG.Ibinfo.GetNumberOfContainerAttributes();
For &i = 1 To &index
&attrName = &MSG.Ibinfo.GetContainerAttributeName(&i);
&attrValue = &MSG.Ibinfo.GetContainerAttributeValue(&i);
End-For;