• Anonymous
  • Login
  • Register
Qenos Application Framework - Feature Request: wfCallServerScript function - allow inline LS


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



In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.