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

Compare with Current View Page History

« Previous Version 5 Next »

This server class provides methods that withdraw information from the mail script and print it 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:

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

getSpace()


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


Return:

TypeDescription
IntegerThe number of spaces in the message body.


Example:

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

print(string)


This method allows inserting the text string into 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)


Use this method to insert 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:

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

  • No labels