OpenNTF.org - OpenNTF Mail Experience
OpenNTF Mail ExperienceOpenDocument[/Projects/pmt.nsf/ProjectView?ReadForm&Query=OpenNTF%20Mail%20Experience~FeatureRequests]

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: OpenNTF Mail Experience (Managed by Vince Schuurman)
Actions:

Hide details for The requestThe request

The idea
Proposed by:Sjef Bosman
Project Master Chef:Vince Schuurman
Feature type:Functionality
Brief Description:Location-dependent signature (code included)
Status:Added to app

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

Action taken
Status:Added to app
Implemented in Release:8.0.2
Comments:


Modification history
Entered 11-Jan-2007 7:03 by Sjef Bosman. Last Modified 01-Oct-2008 11:53 by Vince Schuurman.