Function "lmbShowTemplateModal()"
function lmbShowTemplateModal(gtabid, id, type, firstCall = false, appendData = {})
Parameter
gtabid
table ID as integer
id
datarecord ID as integer
type
type of the template as string
e.g.: 'mail','report'
firstCall
boolean: is this function call the first time this function is called
true: Show the template selection
false: Directly show the loaded template
appendData
type == 'report': currently unused
type == 'mail': JavaScript object with the following keys recognized:
receiver: E-mail address of the recipient as a string
receivers: Array of the e-mail addresses of all recipients (each e-mail a separate string)
subject: Subject of the e-mail as a string
No key must be present, but both ‘receiver’ and ‘receivers’ must not occur.
Return value
Nothing is returned
Example
lmbShowTemplateModal(1,1,"mail",true,{receiver:"no-reply@limbas.com",subject:"Business inquiry"});