• Anonymous
  • Login
  • Register
OpenNTF Mail Experience - Feature Request: Location-dependent signature (code included)


Is it possible to implement a location-dependent signature in the standard template? It requires
- a form Signature, fields Location and all signature fields on the Calendar Profile form
- an option 3 in the Calendar Profile form, to indicate that the signature must be fetched from a Signature document
- a view Signatures, sorted by Location name
- an extension in the CoreEmailClasses, to handle option 3

The following code is all that's required:
If Me.m_nSignatureOption=3 Then ' added for signature documents
Dim location As String
Dim doc_tmp As NotesDocument
Dim view_tmp As NotesView

location= Me.m_session.GetEnvironmentString("Location", True)
location= Left(location, Instr(location,",")-1)
Set view_tmp= Me.m_session.CurrentDatabase.GetView("Signatures")
Set doc_tmp= view_tmp.GetDocumentByKey(location,True)
If Not(doc_tmp Is Nothing) Then
Me.m_strSignature= doc_tmp.Signature(0)
If doc_tmp.SignatureOption(0)="1" Then
Me.m_nSignatureOption= 1
Else
Me.m_nSignatureOption= 2
End If
End If

End If ' Case 3

It has to be inserted just above the line
Select Case Me.m_nSignatureOption
it should be around line 744.

I could send you the template with this extension.



Taken Actions by Owners



Documents
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.