Mashups in Presto Wires : Creating Mashups in Wires : Add Actions or Other Blocks : Group Results
Group Results
 
Set Conditions to Filter Items to Include in Groups
Add Calculations for the Group
Group Configuration Example
Group Block Video rectGroup Block Video
Use the Group block to group repeating items based on the unique values of one field. Optionally, you can filter items for a group or calculate simple statistics for the group. You can define multiple levels of groups.
1. Connect a document-type result as input to the Group block.
2. Use the Path Selector in Select Repeating Element to identify the repeating items to be grouped.
See Select Fields or Paths for Block Properties with the Path Selector for more information.
3. In Group:
a. Use the Path Selector in Group Key to find the field within these repeating items to use to group data for this level. Each unique value in this field will define one group.
b. Optionally, enter a name for the node that should wrap all items for this group in Group Name.
Note:  
Names must be valid XML names, starting with a letter and containing only letters, numbers, underscores (_), dashes (-) or periods (.).
If you omit this property, the root node wrapping all groups defaults to output. For lower level groups, omitting this property omits the wrapping node.
c. If needed, Set Conditions to Filter Items to Include in Groups' or Add Calculations for the Group.
4. If you need additional levels of grouping for these repeating items, click Add Nested Group.
This opens a new Group section. Complete this section as needed (see previous step) and continue adding Group sections to add additional groups as needed.
See Group Configuration Example for an example of group configuration and the output.
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback