This chapter describes the syntax and the use of CTL1. For detailed information on language reference or built-in functions see:
Example 61.1. Example of CTL1 syntax (Rollup)
//#TL
list customers;
int Length;
function initGroup(groupAccumulator) {
}
function updateGroup(groupAccumulator) {
customers = split($0.customers," - ");
Length = length(customers);
return true
}
function finishGroup(groupAccumulator) {
}
function updateTransform(counter, groupAccumulator) {
if (counter >= Length) {
remove_all(customers);
return SKIP;
}
$0.customers := customers[counter];
$0.EmployeeID := $0.EmployeeID;
return ALL
}
function transform(counter, groupAccumulator) {
}