Qenos Application Framework - Feature Request: wfCallServerScript function - allow inline LSCreated on |
Mar 13, 2007 |
Created by |
Mark Demicoli |
Status |
Added to app |
New parameter allows inline specification of LotusScript code making it ultra convenient to run script with Manager access from any event.
function wfCallServerScript (paramDoc As notesDocument, scriptName As String, <b>optScript As String</b>)
Example:
The following script updates the parent document Implementor field at PostSave. wfCallServerScript is used because the current user does not have access to edit the parent.
use "_QAF WF API"
Sub Postsave(Source As Notesuidocument)
script = {
set db = userDoc.parentDatabase
set parentDoc = db.getDocumentByUNID (userDoc.ParentDocumentUNID)
parentDoc.Implementor = userDoc.Implementor
Call parentDoc.save (True,False)
txtPrompt = "Implementor updated in parent PMP document"
}
Call wfCallServerScript (Source.document, "", script)
End Sub
Taken Actions by Owners