Mashups in Presto Wires : Creating Mashups in Wires : Add Actions or Other Blocks : Count Results
Count Results
 
Connecting Input Blocks to Block Properties in the Wires Canvas
Selecting Existing Input Blocks for Block Properties
The Counter action calculates the number of items in a set of repeating items. You can also set one or more conditions that items must match in order to be counted.
You must connect document-type results as input to this action.
Note:  
The result for this action is a simple number rather than a well-formed document.
Select item to count
Click in this field to select the repeating items that you want to count.See Select Fields or Paths for Block Properties with the Path Selector for more information.
Add Conditions / Remove All Conditions
To filter the set of repeating items that should be counted, click Add Conditions and complete one or more conditions.
To remove all conditions, click Remove All Conditions.
apply condition
If you add multiple conditions, use this option to determine whether all conditions or only one must be met for an item to be counted.
left condition field
Click here to select the field in each repeating item that you want to use to filter the items to count. See Select Fields or Paths for Block Properties with the Path Selector for more information.
comparison function
If needed, change the comparison function for the filter condition:
*Contains = checks to see that the text characters you are filtering for are present somewhere in the field you have chosen to filter by. The comparison is not case sensitive, unless you set the Case Sensitive option.
*Does not contain = checks to see that the text characters you are filtering for are not present somewhere in the field you have chosen to filter by. The comparison is not case sensitive, unless you set the Case Sensitive option.
*Matches = checks to see that the characters you are filtering for are present somewhere in the field you have chosen to filter.
*Does not match = checks to see that the characters you are filtering for are not present somewhere in the field you have chosen to filter.
*= (equals), != (does not equal), > (is greater than), < ()is less than, >= (is greater than or equals) or <= ()is less than or equals = compares the entire value of the field you select with the value you set for the filter condition using standard numeric comparisons.
right condition field
Set the value to check for in the right side of the condition. You can:
*Enter a value, word or phrase directly in the right side of the filter condition.
*Use an input field to provide the value dynamically. See Selecting Existing Input Blocks for Block Properties or Add Input Fields Directly to Block Properties for instructions.
*Use a Presto global or user parameter to provide the value. See Use Presto Global or User Attributes in Block Properties for instructions.
Case Sensitive
Set this option if the condition should be case sensitive.
Add Condition
Add another condition.
Note:  
Presto developers who know XPath well can use the Advanced Mode button to customize the XPath expressions for conditions. Use the advance mode with care, however, as it disables the display of conditions in basic mode. If you return the condition to basic mode, your customized XPath expression for the condition is lost.
Use Input Fields in Block Properties
You can use Input blocks to define input fields for the mashup to provide dynamic values for properties in other blocks. There are several ways to connect an Input block to a block property:
*By drawing connections in the canvas. See Connecting Input Blocks to Block Properties in the Wires Canvas for instructions.
*By selecting an existing input field in the Path Selector list. See Selecting Existing Input Blocks for Block Properties for instructions.
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback