Siebel Medical Handheld Guide > Print Tagging Language > Get and Set Tags >
GetTotal Tag
The GetTotal tag calculates the total for a specified column (or for all selected rows) and assigns the value to a variable. Usage
Use the GetTotal tag to calculate a column total and display the total in your report. Syntax
<TAG:GetTotal appletname="APPLET NAME" fieldName="FIELD NAME" query="QUERY STRING" variable="VARIABLE NAME">
|
|
TAG:GetTotal |
(Required) Required tag indicator. |
appletname |
(Required) Name of the applet. |
fieldname |
(Required) Name of the field or column. Specify a field or column with numeric data. If you specify a field with non-numeric data, a 0 is assigned to the variable. |
query |
(Optional) Search specification for the rows to be included in the total. If not specified, the current search specification is used. The syntax for the query string is: Field Name|Query Statement. You can specify one or more query strings separated by a vertical bar (|). For example, Query="Name|LIKE 'Sieb*'"|"Location|LIKE 'H*'" |
variable |
(Required) Name of variable where the value is stored. |
Example
<TAG:GetTotal appletname="CS HH Product Bucket List Applet" fieldname="Quantity" variable="ProdBucketListTotal">
|