You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

This server class provides methods for printing out from a mail script to the message.

getPrint()

This method returns the string from the message body.


Return:

TypeDescription
StringThe message string.


Example:

getPrint
(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.getPrint();
})(current, template, email, event);

getSpace()

This message return the spaces number in the message body,


Return:

TypeDescription
IntegerSpaces number in the message body.


Example:

getSpace
(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.getSpace();
})(current, template, email, event);

print(string)

Prints the text string to the message body.


Parameter(s):

NameTypeMandatoryDefault Value
stringStringYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

print
(function runNotificationScript(
/* SimpleRecord */ current,
/* SimpleTemplatePrinter */ template,
/* SimpleEmailOutbound */ email,
/* SimpleRecord */ event
) {
template.print(“SimpleOne”);
})(current, template, email, event);

space(spaces)

This method adds non-breaking spaces to the message body


Parameter(s):

NameTypeMandatoryDefault Value
spacesIntegerYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

space
(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.space(3);
})(current, template, email, event);

  • No labels