dataArray(fields, rowSubset, includeFieldNames)
<p><b>Total:</b> {{ SUBSET_SUM("Coupon") }}</p>
<#
if (x==5) {
y = 3;
} else {
y = 2;
}
out.println("Write some text into the document, programmatically");
var array = subset_uniquesList("Category");
for (var i in array) {
#>
<b>Some text and HTML with <#=array[i]#> (inserted values)</b>
<#
}
#>
formula("IF(RAND<0.5, true, false)")
recordCount()
or recordCount(subset)
subset("Field name", "Field value")
or subset("Field name", "Field value", "Operator")
subset_sum("Field name")
or subset_sum("Field name", subset)
textvalue(value)
or textvalue(value, pattern)
CELL([Price], 53)
CELL(FIELDNAME(3), CURRENTROW()-1)
for (n = 1; n<=fieldCount(); n++) {
out.println(fieldName(n)+": "+cell(fieldName(n), 1)+"<br>");
}
]]>
input1.recordCount()
input[0].subset_sum("Price")
[
["1, 1", "1, 2", "1, 3"],
["2, 1", "2, 2", "2, 3"],
["3, 1", "3, 2", "3, 3"]
]
[
[
input1.recordCount()
],
[
input2.recordCount()
]
]
working = new Array();
for (i in inputs) {
var input = inputs[i].dataArray(null, null, true);
for (n in input) working.push(input[n]);
}
working;
SCRIPT(`
if (a < b) {
"a is lower";
} else if (b < a) {
"b is lower";
} else {
"a equals b";
}
`, "a", 5, "b", 7)
SCRIPT(`
// Running total of Coupon field for all Categories up to the current Category:
var array = subset_uniquesList("Category");
var total = 0;
var curval = refVal("Category");
for (var i in array) {
var val = array[i];
total += subset_sum("Coupon", subset("Category", val));
if (val==curval) break; // Stop here
}
// Result value:
total;
`)
scp://host:port/path/to/remote/file.csv
sftp://host:port/path/to/remote/file.csv
This view has {{ RECORDCOUNT() }} records showing
Data for category "{{ SUBSET_SINGLETON([My Category Field]) }}"