Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This server class provides methods for printing out from a that withdraw information from the mail script and print it out to the message.

getPrint()


This method returns the string(s) from the message body that was/were produced by the print() method.


Return:

TypeDescription
StringThe message string.


Example:

Code Block
languagejs
themeEclipse
titlegetPrint
(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.getPrint();
})(current, template, email, event);

getSpace()


This message return returns the number of spaces number in the message body that were produced by the space(spaces) method,.


Return:

TypeDescription
IntegerSpaces number in the message body.


Example:

Code Block
languagejs
themeEclipse
titlegetSpace
(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.getSpace();
})(current, template, email, event);

print(string)


Prints This method allows inserting the text string to the message body.


Parameter(s):

NameTypeMandatoryDefault Value
stringStringYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

Code Block
languagejs
themeEclipse
titleprint
(function runNotificationScript(
/* SimpleRecord */ current,
/* SimpleTemplatePrinter */ template,
/* SimpleEmailOutbound */ email,
/* SimpleRecord */ event
) {
template.print(“SimpleOne”'SimpleOne');
})(current, template, email, event);


space(spaces)


This method adds non-breaking spaces to inserts a sequence of spaces (one after another) in the message body.


Parameter(s):

NameTypeMandatoryDefault Value
spacesIntegerYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

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


Table of Contents
absoluteUrltrue
classfixedPosition