Advanced Customization > Info*Engine User’s Guide > Task Webject Reference > Group Webjects > Concat-Groups
  
Concat-Groups
DESCRIPTION
Links two groups of data together in a series, allowing duplicate information to appear from both groups.
For example, group A contains the elements u, v, and x and group B contains the elements x, y, and z. The Concat-Groups webject links the elements of groups A and B together, one after the other, to form group C. Group C would then contain the elements u, v, x, x, y, and z.
SYNTAX
<ie:webject name="Concat-Groups" type="GRP">
  <ie:param name="CLASS" data="class"/>
  <ie:param name="GROUP_IN" data="group_name1"/>
  <ie:param name="GROUP_IN" data="group_name2"/>
  <ie:param name="GROUP_OUT" data="output_group_name"/>
</ie:webject>
PARAMETERS
Required
Select
Optional
GROUP_IN
CLASS
GROUP_OUT
CLASS
Specifies the type of the objects contained in the output group named by the GROUP_OUT parameter. For example, if a webject specifies CLASS=MyClassName and GROUP_OUT=data_1, then the XML representation of the output group contains the following tags:
<MyClassName NAME="data_1" TYPE="Object" STATUS="0">
</MyClassName>
The default for this parameter is “Unknown-Class-Name.” This parameter is optional.
GROUP_IN
Specifies the two or more groups that are used in the concatenation. This parameter is required.
GROUP_OUT
Specifies the name of the resulting group. This parameter is required.
EXAMPLE
The following example links the two specified groups together:
<%@page language="java" session="false"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core"
                                               prefix="ie"%>

<!-- Form a group by concatenating two groups -->

<ie:task uri="/com/company/CreateGroup.xml"/>
<ie:task uri="/com/company/CreateGroupHr.xml"/>

<ie:webject name="Concat-Groups" type="GRP">
  <ie:param name="GROUP_IN" data="createdgroup"/>
  <ie:param name="GROUP_IN" data="createhrgroup"/>
  <ie:param name="CLASS" data="ConcatGroup"/>
  <ie:param name="GROUP_OUT" data="results"/>
</ie:webject>