Calling convention: CIP_ReasonContainerToStr("ContainerName": String, "FormatString": String, RootReasonID: Integer, [NeedGroupByReasons: Boolean]): String
Description: Converts the items of a reason container to a formatted, comma-separated string.
Parameters:
ContainerName = Name of the reason container entry.
FormatString = Template assembled from the supported format codes.
RootReasonID = Root reason whose descendants are included; NULL selects all reasons.
NeedGroupByReasons = Optional. If True, groups the container items by reason; the default is False.
Format codes:
Index = Sequence number.
ReasonName = Name of the reason.
ReasonWithBranch = Full reason branch including the reason name.
Value = Value of the item.
Remark = Remark of the item.
Returns: String: formatted reason-container items; NULL if the current object, DBForm, a required argument or the requested reason container is unavailable, or if the entry is not a reason-container type.
Availability: Default.
Example:
CIP_ReasonContainerToStr("A_Container", "Index. ReasonWithBranch(Value) Remark", NULL)