public class EmailScreenCommand extends SQLCommand
EMAIL_SCREEN BASE_OBJ base
SCREEN_KEY screen
EMAIL_ACCOUNT sender
CONTACT_KEY receiver
[[CONTENT content]|[TEMPLATE template_key]]
[SUBJECT subject]
[INLINE]
Usage/* send email use screen screen@12~2@1 format base on invoice@22~2@1 */ EMAIL_SCREEN BASE_OBJ invoice@22~2@1 SCREEN_KEY screen@12~2@1 /* inline option will add screen contents in the email rather than as attachment */THREAD MODE: SINGLE THREADED command
CURSOR_SIZE| Constructor and Description |
|---|
EmailScreenCommand(Connection connection,
Pattern pattern)
std.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(Parser p)
execute the command.
|
DBEmailSend |
generateDBEmail(MutableDataSource mds,
java.lang.String subject,
DBEmailAccount sender,
Contact receiver,
java.lang.String content,
DBObject base,
SDBScreen screen,
boolean inline) |
java.lang.String |
getColumnName(int col)
implements getColumnName of interface CommandBuildResultsPlugin.
|
java.lang.String |
getColumnType(int col)
Gets the column type for the given column index, starting at one
|
java.lang.String |
getRecordID(int row)
the record ID
|
java.lang.Object |
getValue(int row,
int col)
the value for this row, column
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnlyexecute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRawTitlepublic EmailScreenCommand(Connection connection, Pattern pattern)
connection - the connectionpattern - the patternpublic DBEmailSend generateDBEmail(MutableDataSource mds, java.lang.String subject, DBEmailAccount sender, Contact receiver, java.lang.String content, DBObject base, SDBScreen screen, boolean inline) throws java.lang.Exception
mds - the mutable data sourcesubject - sender - receiver - content - base - the base objectscreen - the screeninline - java.lang.Exception - a serious problemprotected void execute(Parser p) throws java.lang.Exception
public java.lang.String getColumnName(int col)
col - the column number to namepublic java.lang.String getRecordID(int row)
row - the row indexpublic java.lang.String getColumnType(int col)
col - the column indexpublic java.lang.Object getValue(int row,
int col)
row - the row indexcol - the columnstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.