This section describes the proprietary Primavera Portfolio Management (PPM) syntax that can be used when defining functions.
The functions should be written as the body of a JavaScript function (without the definition and enclosing brackets). The function should include a `return' statement. Example:
var sum = 0;
for (var i = 0; i < 10; i++)
{
sum += i;
}
return sum;
The return value should match the value type of category (integer/float/text/values list/date/user). See also Data Type Representation in Functions.
Note: The functions are being executed in a background process. Do not attempt to use any external resources (such as COM objects, etc) from within the advanced functions.