'++LotusScript Development Environment:2:5:(Options):0:66
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
Declare Sub Postdocumentdelete(Source As Notesuidatabase)
'++LotusScript Development Environment:2:5:(Declarations):0:2
'++LotusScript Development Environment:2:2:BindEvents:1:129
Private Sub BindEvents(Byval Objectname_ As String)
Static Source As NOTESUIDATABASE
Set Source = Bind(Objectname_)
On Event Querydocumentdelete From Source Call Querydocumentdelete
On Event Postdocumentdelete From Source Call Postdocumentdelete
End Sub
'++LotusScript Development Environment:2:2:Querydocumentdelete:1:12
Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
End Sub
'++LotusScript Development Environment:2:2:Postdocumentdelete:1:12
Sub Postdocumentdelete(Source As Notesuidatabase)
End Sub
O=Lotus Notes
O=Lotus Notes
PURSAFO
|.:#U
O=Lotus Notes
CN=Lotus Notes Template Development/O=Lotus Notes
PURSAFO
tvSk1D
$DBScript
$DBScript_O
$TITLE
$Flags
$PublicAccess
Times New Roman
Using MIME Conversion Forms
@ @@ @` @
@@ @@@@@`@@
`@ `@@`@``@
All uses of this database are limited to automated CD->MIME conversion for RC1 and adding customized forms, though possible, must be pre-tested by the customer in controlled manner.
O=Lotus Notes
O=Lotus Notes
PURSAFO
|.:#U
O=Lotus Notes
CN=Lotus Notes Template Development/O=Lotus Notes
PURSAFO
" };>
$INFO
$BODY
Times New Roman
About MIME Conversion Forms
@ @@ @` @
@@ @@@@@`@@
`@ `@@`@``@
The template is used to create a database for use during the rendering of Notes Mail Rich Text bodies to MIME content. The database: cmcforms.nsf is created automatically the first time CD->MIME conversion takes place.
There is no Help available for this template.
O=Lotus Notes
O=Lotus Notes
PURSAFO
|.:#U
O=Lotus Notes
CN=Lotus Notes Template Development/O=Lotus Notes
PURSAFO
$INFO
$BODY
$HideMailHeader
BGTableColor
HeaderRegion
BodyRegion
New Memo
Subject
Subject
Subject
4S6S12S13S14S15S17S21S23S25S26S28S
wMemo
returnreceipt
wMemoOpen
Query_string
forward
wMemoOpen
13R24S
(Help)
MAIL_F_MEMO
0S0E
&Arial
FComic Sans MS
'++LotusScript Development Environment:2:5:(Options):0:74
Option Public
Option Explicit
Use "CoreEmailClasses"
'++LotusScript Development Environment:2:5:(Forward):0:1
'++LotusScript Development Environment:2:5:(Declarations):0:10
Dim cMemoObject As Variant
Lotus ProductQ
V0.0L
J,|}8r
J,|}8r
^,|J,|
JT~KD~-
JT~KD~-
KD~-<
~}8rKD~-`
Memo'++LotusScript Development Environment:2:5:(Options):0:66
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
Declare Sub Postmodechange(Source As Notesuidocument)
Declare Sub Postopen(Source As Notesuidocument)
Declare Sub Postsave(Source As Notesuidocument)
Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Declare Sub Postrecalc(Source As Notesuidocument)
Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
Declare Sub Click(Source As Button)
'++LotusScript Development Environment:2:5:(Declarations):0:2
'++LotusScript Development Environment:2:2:BindEvents:1:129
Private Sub BindEvents(Byval Objectname_ As String)
Static Source As NOTESUIDOCUMENT
Set Source = Bind(Objectname_)
On Event Queryopen From Source Call Queryopen
On Event Querysave From Source Call Querysave
On Event Postmodechange From Source Call Postmodechange
On Event Postopen From Source Call Postopen
On Event Postsave From Source Call Postsave
On Event Queryclose From Source Call Queryclose
On Event Postrecalc From Source Call Postrecalc
On Event Querymodechange From Source Call Querymodechange
End Sub
'++LotusScript Development Environment:2:2:Queryopen:1:12
Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
Set cMemoObject = New UIMemoDocument
Call cMemoObject.Init(Source,Isnewdoc)
End Sub
'++LotusScript Development Environment:2:2:Querysave:1:12
Sub Querysave(Source As Notesuidocument, Continue As Variant)
Call cMemoObject.QuerySave(Continue)
End Sub
'++LotusScript Development Environment:2:2:Postmodechange:1:12
Sub Postmodechange(Source As Notesuidocument)
Call cMemoObject.PostModeChange()
End Sub
'++LotusScript Development Environment:2:2:Postopen:1:12
Sub Postopen(Source As Notesuidocument)
Call cMemoObject.PostOpen(Source)
End Sub
'++LotusScript Development Environment:2:2:Postsave:1:12
Sub Postsave(Source As Notesuidocument)
Call cMemoObject.PostSave()
End Sub
'++LotusScript Development Environment:2:2:Queryclose:1:12
Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Call cMemoObject.QueryClose(Continue)
End Sub
'++LotusScript Development Environment:2:2:Postrecalc:1:12
Sub Postrecalc(Source As Notesuidocument)
End Sub
'++LotusScript Development Environment:2:2:Querymodechange:1:12
Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
Continue = cMemoObject.QueryModeChange(Source)
End Sub
'++LotusScript Development Environment:2:2:Click:1:8
'++LotusScript Development Environment:2:5:(Options):0:74
Option Public
'++LotusScript Development Environment:2:5:(Forward):0:1
'++LotusScript Development Environment:2:5:(Declarations):0:2
$Subscription
$HLMLastServer
.,$ //:
$HLMLastChecked
.,$, , :
$NoPurge
.,$, , :
$HLType
Mail Subscription
xxDisabled
Disabled
1S2S
$HlDisabled
xxDisabled"
0R2S3S4S6S7S8S10SDispDisabled
MainTable
MainTable
Name
Subscription name:
Enter a subscription name
$HLTitle
Retrieval
$HLType
1S2S
Get:
$QueryType
All incoming mail | allIncoming mail that matches any checked item: | sel
QueryType
QueryType
CritSentOnlyToMe
Sent only to me|1
CritSentDirectlyToMe
Sent directly to me (I am explicitly listed in the "To:" field)|1
CritHighPriority
High priority or importance |1
CritReturnReceipt
A return reciept is requested|1
CritToDo
To Dos assigned to me|1
CritToDoComplete
Completed To Dos|1
CritMeetInvite
Meeting invitations|1
CritMeetResponse
Meeting responses|1
CritFrom
From:|1
CritFrom
1S2S
CritFromNames
Enter the fully qualified name. (ex. "John Doe/Acme/Sales/US"). Separate multiple names with a comma.
Enablement
$HLEnabled is the old enabled flag with a value of either 1 or 0. For UI simplicity, it was changed to $HLDisabled with a possible value of either 1 or null
Only the following users can request my free time information:
AllowBusyAccess
Freetime
EnableAlarms
Enable alarm notifications|1
EnableAlarms
1S2S
Default Alarms
SetAlarmAppointment
Appointments/Meetings|1
EnableAlarms
SetAlarmAppointment
1S2S3S4S5S6S
AppointmentLead
AppointmentLead
3S4S
AppointmentLead
minute(s) in advance
SetAlarmReminder
Reminders|1
EnableAlarms
SetAlarmReminder
1S2S3S2E4S5S6S
ReminderLead
ReminderLead
3S4S
ReminderLead
minute(s) in advance
SetAlarmEvent
Events|1
EnableAlarms
SetAlarmEvent
1S2S3S2E4S5S6S
EventLead
EventLead
3S4S
EventLead
day(s) in advance
SetAlarmAnniversary
Anniversaries|1
EnableAlarms
SetAlarmAnniversary
1S2S3S2E4S5S6S
AnniversaryLead
AnniversaryLead
3S4S
AnniversaryLead
day(s) in advance
SetAlarmTask
Tasks|1
EnableAlarms
SetAlarmTask
1S2S3S2E4S5S6S
.,$///:
TaskLead
TaskLead
3S4S
TaskLead
day(s) in advance of due date
Default sound:
AlarmSound
tmpAlarmSounds
Alarms
Calendar View Display
Time Slot Start:
.,$ //:
CalendarTimeSlotStart
Time Slot End:
.,$ //:
CalendarTimeSlotEnd
Time Slot Interval:
CalendarTimeSlotDuration
15 minutes|1530 minutes|3060 minutes|60
Views
AutoProcessMeetings
1S2S
AutoProcessType
AutoProcessType
3S4S6S8S
AutoProcessType
Do not automatically process meeting requests|DAutoprocess meeting requests from all users|0Autoprocess meeting requests from the following users|2Forward meeting requests to the following person|1
AutoProcessType
1S2S
AutoprocessUserList
AutoProcessType
1S2S
Size=40
AutoProcessForwardTo
AutoRemoveFromInbox
Remove event requests from my Inbox after I respond to them|1
PreventRepliesFromInbox
Prevent event replies from appearing in my Inbox|1
Autoprocess
TaskFollow
Always show current To do's on today's calendar|1
To Do
Calendar
Calendar
The following people/groups can:
Read my mail and read my calendar:
ReadMailz
ReadMail
Read and send mail on my behalf and read my calendar:
WriteMail
WriteMail
Read, send, and edit any document in my mail file:
EditMailz
EditMail
Delete mail and calendar entries (allowed for those who can send or edit mail)
DeleteMailz
DeleteMail
*Other (Designer or Manager)
.,$, , :
OtherUsers
0S0E
OtherUsers
*These entries cannot be modified from this dialog
Mail Delegation
Calendar Read Accesss
PublicRead
3S4S
PublicRead
Everyone can read my calendar|1Only the following people/groups can read my calendar|0
PublicRead
1S2S
ReadCalendar
Calendar Create/Edit Access
PublicWrite
3S4S
PublicWrite
Everyone can manage my calendar|1Only the following people/groups can manage my calendar|0
PublicWrite
1S2S
WriteCalendar
Calendar Delegation
Delegation
Owner
$BusyName
$NoPurge
$NoPurge
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
0S0E
$AvailableDays
$PublicAccess
$CSVersion
Categori_zeK
_Edit Document
Send Docu_ment
_Forward
_Move To Folder...
_Remove From FolderK
Categori_zeK
_Edit Document
Send Docu_ment
_Forward
_Move To Folder...
_Remove From FolderK
O=Lotus Notes
O=Lotus Notes
PURSAFO
|.:#U
O=Lotus Notes
CN=Lotus Notes Template Development/O=Lotus Notes
PURSAFO
$HTMLDocumentStyles
$DialogMode
$INFO
$WEBQuerySave
$WEBQueryOpen
$AppHelpFormula
$WebFlags
$Script
$$Script_O
$$ScriptName
$$FormScript
$$$FormScript_O
$$SignatureOption
$SignatureOption_O
$$Signature_2
$Signature_2_O
$$Signature_1
$Signature_1_O
$$Signature
$Signature_O
DefaultDuration
AutoAnniversaryRepeat
$Times1
$Times2
$Times3
$Times4
$Times5
$Times6
$Times7
AppointmentLead
ReminderLead
EventLead
AnniversaryLead
TaskLead
CalendarTimeSlotStart
CalendarTimeSlotEnd
$BODY
$V5ACTIONS
$ACTIONS
$PublicAccess
*** Message Successfully Delivered ***
(Help)
MAIL_F_DELIVERY-REPORT
0S0E
Delivery Report
Delivery Confirmation Report
Your document:
Subject
Subject
was delivered to:
IntendedRecipient
IntendedRecipient
DeliveryDate
BodyBody of memo.
Categori_zeK
Close
0S0E
_Edit Document
Send Docu_ment
_Forward
_Move to Folder...
_Remove from Folder...
Inbox
1S2S
path"
/MailFS?OpenFrameset"
0R3S4S5S6S
act_NEWMAIL.GIF|act_NEWMAIL?
Delete
1S10S14S16S23S
0R5S
path"
/wDelete?OpenAgent&
UNID"
act_DELETE.GIF|act_DELETE?
Next
0S0E
Previous
Categori_zeK
Close
0S0E
_Edit Document
Send Docu_ment
_Forward
_Move to Folder...
_Remove from Folder...
Inbox
1S2S
path"
/MailFS?OpenFrameset"
0R3S4S5S6S
Delete
1S10S14S16S23S
0R5S
path"
/wDelete?OpenAgent&
UNID"
Next
0S0E
Previous
O=Lotus Notes
O=Lotus Notes
PURSAFO
|.:#U
O=Lotus Notes
CN=Lotus Notes Template Development/O=Lotus Notes
PURSAFO
$INFO
$WINDOWTITLE
$AppHelpFormula
$$ScriptName
DeliveryDate
$BODY
$V5ACTIONS
$ACTIONS
xxNoSubject
Group Calendar
1S2E2S
Subject
Subject
xxNoSubject
0RR7S9S
Lotus Product
OBJECT
(GroupCalendar)'++LotusScript Development Environment:2:5:(Options):0:66
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Declare Sub Postopen(Source As Notesuidocument)
'++LotusScript Development Environment:2:5:(Declarations):0:2
'++LotusScript Development Environment:2:2:BindEvents:1:129
Private Sub BindEvents(Byval Objectname_ As String)
Static Source As NOTESUIDOCUMENT
Set Source = Bind(Objectname_)
On Event Queryclose From Source Call Queryclose
On Event Postopen From Source Call Postopen
End Sub
'++LotusScript Development Environment:2:2:Queryclose:1:12
Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Call source.save
End Sub
'++LotusScript Development Environment:2:2:Postopen:1:12
Sub Postopen(Source As Notesuidocument)
source.fieldhelp = False
source.horzscrollbar = False
End Sub
Lotus Product
Lotus Product
OBJECT
SaveOptions
ExcludeFromView
Subject
Subject
7S9S
tmpTitle
CalendarView
StartDateTime
Duration
Members
Categori_zeK
_Edit Document
Send Docu_ment
_Forward
_Move To Folder...
_Remove From FolderK
Add MembersK
MembersToAdd
1S2S
Members
Members
MembersToAdd
0R1S2S3S6S7S
SaveOptions
0R1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
act_participantactions.GIF|act_CSPARTACTIONS
Remove Members
AbbrevList
Members
1S2S
MembersToRemove
Remove Members
Select the member(s) you wish to remove from the group calendar
AbbrevList
0R1S2S6S8S
Members
AbbrevList
MembersToRemove
0R1S2S3S7S
SaveOptions
0R1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
act_csowneractions.GIF|act_CSOWNERACTIONS?
Options...f
(GroupCalendarOptions)
Options
0S0E
StartDateTime
Startdate
StartTime
0RR1S2S3S12S13S14S15S
Duration
DurationSel
0R1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
act_TOOLS.GIF|act_TOOLS?
Show LegendK
$GroupScheduleShowLegend
1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
$GroupScheduleShowLegend
1S2S
Hide LegendK
$GroupScheduleShowLegend
1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
$GroupScheduleShowLegend
1S2S
Categori_zeK
_Edit Document
Send Docu_ment
_Forward
_Move To Folder...
_Remove From FolderK
Add MembersK
MembersToAdd
1S2S
Members
Members
MembersToAdd
0R1S2S3S6S7S
SaveOptions
0R1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
Remove Members
AbbrevList
Members
1S2S
MembersToRemove
Remove Members
Select the member(s) you wish to remove from the group calendar
AbbrevList
0R1S2S6S8S
Members
AbbrevList
MembersToRemove
0R1S2S3S7S
SaveOptions
0R1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
Options...f
(GroupCalendarOptions)
Options
0S0E
StartDateTime
Startdate
StartTime
0RR1S2S3S12S13S14S15S
Duration
DurationSel
0R1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
Show LegendK
$GroupScheduleShowLegend
1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
$GroupScheduleShowLegend
1S2S
Hide LegendK
$GroupScheduleShowLegend
1S2S3S
$GroupScheduleRefreshMode
0R1S2S3S
$GroupScheduleShowLegend
1S2S
O=Lotus Notes
O=Lotus Notes
PURSAFO
|.:#U
O=Lotus Notes
CN=Lotus Notes Template Development/O=Lotus Notes
PURSAFO
, -UZQk>
$HTMLDocumentStyles
StartDate
StartTime
$INFO
$WINDOWTITLE
$FrameInfo
$$Script_O
$$ScriptName
$$FormScript
$$$FormScript_O
$BODY
$V5ACTIONS
$ACTIONS
$PublicAccess
&Arial
'++LotusScript Development Environment:2:5:(Options):0:74
'++LotusScript Development Environment:2:5:(Forward):0:1
'++LotusScript Development Environment:2:5:(Declarations):0:2
Lotus Product
V0.0a
(GroupHelper)
Group name:
-Untitled-
GroupName
Group type:
GroupTypeChoose the appropriate type for this group.
Multi-purpose|0Access Control List only|2Mail only|1
Description:
DescriptionDescription or purpose of the group.
Members:
AllAddresses
0S0E
SelectedGroupMembers
AllAddresses
AllAddresses"
6S8S9S
O=Lotus Notes
O=Lotus Notes
PURSAFO
|.:#U
O=Lotus Notes
CN=Lotus Notes Template Development/O=Lotus Notes
PURSAFO
$INFO
$Script
$$Script_O
$$ScriptName
$BODY
&Arial
'++LotusScript Development Environment:2:5:(Options):0:74
Option Public
Option Declare
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Class UIAddressHelper
'++LotusScript Development Environment:2:5:(Declarations):0:10
Const CONFLICT_MESSAGE$ = "This entry is already in your addressbook"
Dim AddressControl As UIAddressHelper
Class UIAddressHelper
Private m_uiws As notesuiworkspace
Private m_uidocDialog As notesuidocument
Private m_noteDialog As notesdocument
Private m_vAllAddresses As Variant
Private m_vAllNoteIDs As Variant
Private m_vAllTitle As Variant
Private m_vAllFirst As Variant
Private m_vAllMiddle As Variant
Private m_vAllLast As Variant
Private m_vAllFullName As Variant
Private m_vAllSuffix As Variant
Private m_vAllEmail As Variant
Private m_vAllDomain As Variant
Private m_vAllPublicAddressUNID As Variant
Private m_vAllEmailType As Variant
Private m_vAllConflictInNAB As Variant
Private m_vAllConflictAction As Variant
Private m_nMAX As Integer
Private m_nBottom As Integer
Private m_nCurrentSelection As Integer
Declare Public Sub Init(Source As notesuidocument)
Only the following users can request my free time information:
AllowBusyAccess
Freetime
Freetime
Freetime
AutoProcessMeetings
1S2S
AutoProcessType
AutoProcessType
3S4S6S8S
AutoProcessType
Do not automatically process meeting requests|DAutoprocess meeting requests from all users|0Autoprocess meeting requests from the following users|2Forward meeting requests to the following person|1
AutoProcessType
1S2S
Size=40
AutoprocessUserList
AutoProcessType
1S2S
Size=40
AutoProcessForwardTo
AutoRemoveFromInbox
Remove event requests from my Inbox after I respond to them|1
PreventRepliesFromInbox
Prevent event replies from appearing in my Inbox|1
Set Me.name = New notesname(Me.note.GetitemValue("Owner")(0))
If Not Me.name.Ishierarchical Then
Set Me.name = New notesname(Me.session.UserName)
If Me.name.Ishierarchical Then
Call RaiseUIError(OWNER_IS_FLAT)
End If
End If
ValidateOwner = True
End Function
Private Function GetAclEntries()
'initialize dynamic array
Redim Me.ReadCal(0)
Redim Me.WriteCal(0)
Redim Me.ReadMail(0)
Redim Me.WriteMail(0)
Redim Me.EditMail(0)
Redim Me.DeleteMail(0)
Redim Me.OtherUsers(0)
Redim Me.AddedUsers(0)
Redim Me.DeletedUsers(0)
Set Me.aclentry = Me.acl.GetFirstEntry
Do Until Me.aclentry Is Nothing
Select Case Me.aclentry.Level
Case ACLLEVEL_NOACCESS
If Me.aclentry.Name = "-Default-" Then
If Me.aclentry.IsPublicReader Then
Me.note.PublicRead = "1"
Else
Me.note.PublicRead = "0"
End If
If Me.aclentry.IsPublicWriter Then
Me.note.PublicWrite = "1"
Else
Me.note.PublicWrite = "0"
End If
Else
If Me.aclentry.IsPublicReader Or Me.aclentry.IsPublicWriter Then
Call IsPublicReader()
Call IsPublicWriter()
Else
'These are other NoAccess people and we don't want to change them
x = Ubound(Me.OtherUsers)
Me.OtherUsers(x) = Me.aclentry.Name
Redim Preserve Me.OtherUsers(x+1)
End If
End If
Case ACLLEVEL_READER
x = Ubound(Me.ReadMail)
Me.ReadMail(x) = Me.aclentry.Name
Redim Preserve Me.ReadMail(x+1)
Call IsPublicReader()
Call IsPublicWriter()
Case ACLLEVEL_AUTHOR
If Me.aclentry.CanCreateDocuments Then
x = Ubound(Me.WriteMail)
Me.WriteMail(x) = Me.aclentry.Name
Redim Preserve Me.WriteMail(x+1)
Else
x = Ubound(Me.ReadMail)
Me.ReadMail(x) = Me.aclentry.Name
Redim Preserve Me.ReadMail(x+1)
End If
If Me.aclentry.CanDeleteDocuments Then
x = Ubound(Me.DeleteMail)
Me.DeleteMail(x) = Me.aclentry.Name
Redim Preserve Me.DeleteMail(x+1)
End If
Call IsPublicReader()
Call IsPublicWriter()
Case ACLLEVEL_EDITOR
x = Ubound(Me.EditMail)
Me.EditMail(x) = Me.aclentry.Name
Redim Preserve Me.EditMail(x+1)
If Me.aclentry.CanDeleteDocuments Then
x = Ubound(Me.DeleteMail)
Me.DeleteMail(x) = Me.aclentry.Name
Redim Preserve Me.DeleteMail(x+1)
End If
Call IsPublicReader()
Call IsPublicWriter()
Case Else
'These are Manager and Designers and we don't want to change them
x = Ubound(Me.OtherUsers)
Me.OtherUsers(x) = aclentry.Name
Redim Preserve Me.OtherUsers(x+1)
End Select
Set Me.aclentry = Me.acl.GetNextEntry(Me.aclentry)
Loop
Me.note.ReadCalendar = Fulltrim(Me.ReadCal)
Me.note.WriteCalendar = Fulltrim(Me.WriteCal)
Me.note.ReadMail = Fulltrim(Me.ReadMail)
Me.note.WriteMail = Fulltrim(Me.WriteMail)
Me.note.EditMail = Fulltrim(Me.EditMail)
Me.note.DeleteMail = Fulltrim(Me.DeleteMail)
Me.note.OtherUsers = Fulltrim(Me.OtherUsers)
End Function
End Class
Lotus Productb
V0.0
[D!Kp -
"Kp -
, , \
0S0E
O=Lotus Notes
O=Lotus Notes
PURSAFO
|.:#U
O=Lotus Notes
CN=Lotus Notes Template Development/O=Lotus Notes
PURSAFO
hGrFa
$TITLE
$PublicAccess
$ScriptLib
$ScriptLib_O
'++LotusScript Development Environment:2:5:(Options):0:74
Option Public
Option Explicit
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Class BaseApplication
Declare Class BaseDocument
Declare Class BaseCSStringTable
Declare Class BaseEventOwnerStringTable As BaseCSStringTable
Declare Class MeetingOwnerStringTable As BaseEventOwnerStringTable
Declare Class TaskOwnerStringTable As BaseEventOwnerStringTable
Declare Class BaseEventParticipantStringTable As BaseCSStringTable
Declare Class MeetingParticipantStringTable As BaseEventParticipantStringTable
Declare Class TaskParticipantStringTable As BaseEventParticipantStringTable
Declare Class MessageTrackStringTable
Declare Class MailToolsStringTable
Declare Class MemoStringTable
Declare Class CopyFactory
Declare Class BaseNoteCopy
Declare Class MemoCopy As BaseNoteCopy
Declare Class CalendarCopy As BaseNoteCopy
Declare Class TaskCopy As BaseNoteCopy
Declare Class GroupCalendarCopy As BaseNoteCopy
Declare Sub NAMEGetComponents(sUserName As String,sRetAbbreviatedName As String,sRetDomain As String)
Declare Function NAMECompare(sName1 As String, sName2 As String) As Integer
Declare Function NAMEFindInList(sKeyName As String, vListOfNames As Variant) As Integer
Declare Function NAMECompareWildcards(Byval sName As String,sWildcard As String) As Integer
Declare Function NAMEGetNumOrgUnits(sName) As Integer
Declare Sub TIMEGetFromItem(sItemName As String, note As NotesDocument, dt1 As NotesDateTime)
Declare Function TIMECompareDates(dt1 As NotesDateTime, dt2 As NotesDateTime) As Integer
Declare Sub TIMEGetNotesFromLS(vLS As Variant, dtNotes As NotesDateTime)
Declare Function TIMEValidateArgs(sItemname1 As String, sItemName2 As String, note As NotesDocument) As Integer
Declare Function STRGetToken(sValue,sToken) As String
Declare Function NAMEAbbreviate(vNamesList As Variant) As Variant
Declare Function TIMEFindInSortedList(vKey As Variant, vTimeList As Variant) As Integer
Declare Function ARRAYIsValid(vArray As Variant) As Integer
Declare Function CSGetMailFileOwner() As String
Declare Sub TIMEGetComponents(sDateItem As String, sTimeItem As String, note As NotesDocument, dt1 As NotesDateTime)
Declare Function NOTEUserIsCreator(note As NotesDocument) As Integer
Declare Function NAMEExistsInList(sKeyName As String, vLIstOfNames As Variant) As Integer
Declare Function NOTECopyIntoNewDocument(Byval iNewType As Integer, Byval iFlags As Integer, note As NotesDocument, strnewform As String) As NotesDocument
Declare Function YesNoPrompt(sPrompt As String, sTitle As String) As Integer
Declare Function YesNoCancelPrompt(sPrompt As String, sTitle As String) As Integer
Declare Function DisplayWarn(sError As String, nPrompt As Integer, sTitle As String) As Integer
Declare Sub TIMEAdjustByDifference(Byval lDifference As Long, dtAdjust As NotesDateTime)
Declare Function CSEventDTItemsModified(vBEObject As Variant) As Integer
Declare Function CSEventNeedsReschedule(vBEObject As Variant) As Integer
Declare Sub CSDocOpen(vBEObject As Variant, note As NotesDocument, dtCalInstance As NotesDateTime, Byval dOptions As Long)
Declare Sub CSDocSave(vBEObject As Variant, vCallBackObject As Variant, Byval dAction As Long, Byval dOptions As Long, vContinue As Variant)
Declare Sub CSDocSaveCalendarEntry(vBEObject As Variant, bOwner As Integer, strCurrentType As String)
Declare Sub CSDocSendPrimaryNotice(vBEObject As Variant, vCallBackObject As Variant, vContinue As Variant)
Declare Sub CSDocUpdatePersonalCategories(note As NotesDocument, profile As NotesDocument)
Declare Sub CSExtAppDocSave(note As notesdocument, Byval daction As Long, bIsTask As Integer, vContinue As Variant)
Declare Sub wInstantiateObjectVariables
Declare Sub wMessagePageHeader
Declare Sub CopyProfileValues(noteSrc As NotesDocument, noteDest As NotesDocument)
Declare Function wGetDBPath As Variant
Declare Sub SetInternationalFormatHelpers( note As NotesDocument)
Declare Sub wMarkTempFields(doc As NotesDocument)
Declare Sub wCreateDefaultCalendarProfile
Declare Function wGetCalendarProfile As Integer
Declare Sub CSDocSaveRepeatingEntry(vBEobject As Variant)
Declare Function CSGetMainEventObject(vBEObject As Variant) As Variant
Declare Sub Initialize
'++LotusScript Development Environment:2:5:(Declarations):0:10
'Common:
%INCLUDE "lsconst.lss"
%INCLUDE "orgconst.lss"
'Back end classes
Dim session As NotesSession
Dim db As NotesDatabase
Dim note As NotesDocument
Dim profile As NotesDocument
Dim item As NotesItem
Dim NameLookup As NotesName
Dim agentlog As noteslog
Dim PathAndName As String
'General Purpose classes
Dim Owner As String
Dim NewDocument As Integer
'Client Differenciation
Dim IsWebClient As Variant
Class BaseApplication
' Properties
m_session As NotesSession ' pointer to current session object
m_db As NotesDatabase ' pointer to current database
m_nClientType As Integer
m_stringtable As Variant ' Reference to a StringTable object
Property Get Session As NotesSession
Set Session = m_session
End Property
Property Get Database As NotesDatabase
Set Database = m_db
End Property
Property Get StringTable As Variant
Set StringTable = m_stringtable
End Property
Property Get DocumentsToProcess As NotesDocumentCollection
Set DocumentsToProcess = m_db.UnprocessedDocuments
Class MeetingOwnerStringTable As BaseEventOwnerStringTable
Function GetString(nIndex As Integer, vData As Variant) As String
Select Case nIndex
Case ENTRY_TYPE
GetString = "Changing the entry type will cancel this meeting. Change anyway?"
Case INV_DUPL
GetString = "That person is already invited to this meeting."
Case ENTRY_DTMOD
GetString = "Are you sure you want to change the date/time of this entry?"
Case ENTRY_PAST
GetString = "This entry is being created in the past. Create anyway?"
Case DTMOD_TITLE
GetString = "Change date/time"
Case SEND_ROOM
GetString = "Sending reservation requests to room(s)..."
Case SEND_RES
GetString = "Sending reservation requests to resource(s)..."
Case CTRACPT_TITLE
GetString = "Accept Counter"
Case CTRDECL_TITLE
GetString = "Decline Counter"
Case RESC_UPD_MSG
GetString = "An update notice will be sent to the participants and any rooms/resources you may have requested informing them of this change. "& BaseEventOwnerStringTable..GetString(INC_COMMENTS, Null)
Case CONF_MSG
GetString = "A notice will be sent to the participants confirming this meeting and informing them of the participants' status. "& BaseEventOwnerStringTable..GetString(INC_COMMENTS, Null)
Case MA_RESC
GetString = "Reschedule Meeting"
Case MA_CANC
GetString = "Cancel Meeting"
Case MA_CONF
GetString = "Confirm Meeting"
Case MA_VWSTS
GetString = "View Participant Status"
Case MA_SNDMAIL
GetString = "Send Memo to Participants"
Case MA_TITLE
GetString = "Meeting Activities"
Case SEND_INV_MSG
GetString = "Do you want to send meeting invitations to the appropriate users?"
Case SEND_INVRES_MSG
GetString = "Do you want to send meeting invitations and reservation requests?"
Class TaskOwnerStringTable As BaseEventOwnerStringTable
Function GetString(nIndex As Integer, vData As Variant) As String
Select Case nIndex
Case ENTRY_TYPE
GetString = "Changing the entry type will cancel this to do. Change anyway?"
Case INV_DUPL
GetString = "That person is already a participant of this to do."
Case ENTRY_DTMOD
GetString = "Are you sure you want to change the date this to do is due?"
Case ENTRY_PAST
GetString = "This to do is being created in the past. Create anyway?"
Case MA_RESC
GetString = "Reschedule to do"
Case MA_CANC
GetString = "Cancel to do"
Case MA_CONF
GetString = "Confirm to do"
Case MA_VWSTS
GetString = "View Participant Status"
Case MA_SNDMAIL
GetString = "Send Memo to Participants"
Case MA_TITLE
GetString = "to do Activities"
Case SEND_INV_MSG
GetString = "Send to do assignments to the appropriate users?"
Case SEND_INV_TITLE
GetString = "Send Assignments"
Case RESC_UPD_MSG
GetString = "An update notice will be sent to all participants of this to do informing them of this change. "& BaseEventOwnerStringTable..GetString(INC_COMMENTS, Null)
Case CONF_MSG
GetString = "A notice will be sent to the participants confirming this to do and informing them of the participants' status. "& BaseEventOwnerStringTable..GetString(INC_COMMENTS, Null)
Class MeetingParticipantStringTable As BaseEventParticipantStringTable
Function GetString(nIndex As Integer, vData As Variant) As String
Select Case nIndex
Case RESC_MSG ' Reschedule notice
GetString = "This meeting has been rescheduled. Would you like to open the reschedule notice?"
Case CANCEL_MSG
GetString = "This meeting has been cancelled." ' Message that appears for all cancellation notices
Case CANCEL_UPD
GetString = Me.GetString(CANCEL_MSG, Nothing) & " The calendar entry will be updated to reflect this change." ' User accepted main invitation that is now cancelled
Case CANCEL_NOACTN
GetString = Me.GetString(CANCEL_MSG, Nothing) & " You do not need to take any action." ' The main invitation has not been accepted
Case ACPT_MSG
GetString = "Accepting this meeting request will automatically add this event to your calendar. A reply notice will be sent to " & Cstr(vData) & ". " & BaseEventParticipantStringTable..GetString(INC_COMMENTS, Null)
Case DELE_MSG
GetString = "This request will be forwarded to a person you specify. Any updates regarding this meeting will be sent to the delegee. A reply notice will be sent to " & Cstr(vData) & ". " & BaseEventParticipantStringTable..GetString(INC_COMMENTS, Null)
Case CNTR_MSG
GetString = "You can specify a new date/time for this meeting. A reply notice will be sent to " & Cstr(vData) & ". " & BaseEventParticipantStringTable..GetString(INC_COMMENTS, Null)
Case ADD_MSG
GetString = "This meeting request will be added to your calendar. No reply notice will be sent"
Class TaskParticipantStringTable As BaseEventParticipantStringTable
Function GetString(nIndex As Integer, vData As Variant) As String
Select Case nIndex
Case RESC_MSG ' Reschedule notice
GetString = "The due date for this to do has been changed. Would you like to open the update notice?"
Case CANCEL_MSG
GetString = "This to do has been cancelled." ' Message that appears for all cancellation notices
Case CANCEL_UPD
GetString = Me.GetString(CANCEL_MSG, Nothing) & " The to do entry will be updated to reflect this change." ' User accepted main invitation that is now cancelled
Case CANCEL_NOACTN
GetString = Me.GetString(CANCEL_MSG, Nothing) & " You do not need to take any action." ' The main invitation has not been accepted
Function GetString(nIndex As Integer, vData As Variant) As String
Select Case nIndex
Case TRACKING_STRING+1
GetString = "UNKNOWN "
Case TRACKING_STRING+2
GetString = "In Que "
Case TRACKING_STRING+4
GetString = "DELIVERED "
Case TRACKING_STRING+8
GetString = "DELIVERY FAILED "
Case TRACKING_STRING+16
GetString = "TRANSFERED "
Case TRACKING_STRING+32
GetString = "TRANSER FAILED "
Case TRACKING_STRING+64
GetString = "GROUP EXPANDED "
Case TRACKING_STRING+65
GetString = "Message Tracking"
Case TRACKING_STRING+66
GetString = "Please select recipient(s) to track."
Case TRACKING_STRING+67
GetString = "You may only track messages that you have sent."
Case TRACKING_STRING+68
GetString = "No recipient(s) were selected"
End Select
End Function
End Class
Class MailToolsStringTable
Function GetString (nIndex As Integer, vData As Variant) As String
Select Case nIndex
Case TOOL_STRING
GetString = "Unable to locate your Name & Address Book. Names not added."
Case TOOL_STRING+1
GetString = Str(vData) + " name(s) processed."
Case TOOL_STRING+2
GetString = Str(vData) + " name(s) added to your personal address book."
Case TOOL_STRING+3
GetString = Str(vData) + " name(s) not added; already in your personal address book."
Case TOOL_STRING+4
GetString = "Error adding name(s) to personal address book: " + Str(vData)
Case TOOL_STRING+10
GetString = "Unable to create a calendar entry for your time off."
Case TOOL_STRING+11
GetString = "An Out of office document has been added to your Calendar."
Case TOOL_STRING+12
GetString = "Would you like to create an Out of Office Calender entry?"
Case TOOL_STRING+13
GetString = "Welcome Back! Please disable your Out of Office Agent. To disable the agent, " & _
"Open your Out of Office profile and select the 'Disable' button." & Chr(13)_
& "While you were out, the 'Out of Office' agent notified the following people of your absence." & Chr(13)
Case TOOL_STRING+14
GetString = "Welcome Back! Please disable your Out of Office Agent. To disable the agent, " & _
"Open your Out of Office profile and select the 'Disable' button." & Chr(13) &_
"While you were out, your Out of Office Agent did not notify anyone of your absence."
Case TOOL_STRING+15
GetString = "Welcome Back!"
Case TOOL_STRING+16
GetString = "This is a repeat reminder! Please disable your Out of Office Agent. To disable the agent, " & _
"Open your Out of Office profile and select the 'Enable/Disable' button."
Case TOOL_STRING+17
GetString = "Out of Office Profile ERROR"
Case TOOL_STRING+18
GetString = "ERROR: You must create an Out of Office profile BEFORE running your Out of Office Agent."
Case TOOL_STRING+19
GetString = "ERROR: You must enable your Out of Office profile BEFORE running your Out of Office Agent."
Case TOOL_STRING+31
GetString = " can already read mail."
Case TOOL_STRING+32
GetString = " can already send mail."
Case TOOL_STRING+33
GetString = " can already edit documents."
Case TOOL_STRING+34
GetString = " can already manage the calendar."
Case TOOL_STRING+37
GetString = vData & Chr(13) & "Managers and Designers cannot be modified using the Delegation Profile."
Case TOOL_STRING+38
GetString = "You must add " & Str(vData) & " to either the ""Read and send"" or the ""Read, send, and edit"" list before adding them to the ""Delete"" list."
Case TOOL_STRING+39
GetString = "You must add " & Str(vData) & " to either the ""Read and send"" or the ""Read, send, and edit"" list before adding them to the ""Delete"" list."
Case TOOL_STRING+40
GetString = Str(vData) & " is currently a Manager of this database."
Case TOOL_STRING+41
GetString = Str(vData) & " is currently a Designer of this database. "
Case TOOL_STRING+42
GetString = "You do not have the priviledge to change the ACL settings in this database."
Case TOOL_STRING+43
GetString = "Reminder Please Turn Off your Out Of Office Agent"
Case TOOL_STRING+44
GetString = "Your Out of Office agent is still enabled."
Case TOOL_STRING+45
GetString = "Please ask a Manager or Designer of this database to disable the agent for you."
Case TOOL_STRING+46
GetString = "Lotus Notes Out of Office"
Case TOOL_STRING+47
GetString = "Your 'Out of Office' agent is currently enabled."
Case TOOL_STRING+48
GetString = "Do you want to disable it ?"
Case TOOL_STRING+49
GetString = "Your Out of Office has been disabled."
Case TOOL_STRING+50
GetString = "Please ask a Manager or Designer of this database to enable the agent for you."
Case TOOL_STRING+51
GetString = "Your current location doesn't have a 'Mail Server' specified."'
Case TOOL_STRING+52
GetString = "Please edit your current record and specify your Mail Server."
Case TOOL_STRING+53
GetString = "The Out of Office agent is now enabled to run on the following server: "
Case TOOL_STRING+54
GetString = "When people send you mail between "
Case TOOL_STRING+55
GetString = " and " & vData & " it will inform them of your absence."
Case TOOL_STRING+56
GetString = "The Out of Office agent was not enabled."
Case TOOL_STRING+57
GetString = "You must indicate when you are leaving and when you will be back."
Case TOOL_STRING+58
GetString = "Your return date must be after today's date."
Case TOOL_STRING+59
GetString = "Your return date cannot be earlier than the leave date."
Case TOOL_STRING+60
GetString = "Your return date must be after your leave date."
Case TOOL_STRING+61
GetString = "Preferences"
Case TOOL_STRING+62
GetString = "Add sender to address book"
Case TOOL_STRING+63
GetString = "A contact with your name should not be added to your address book."
Case TOOL_STRING+64
GetString = Cstr(vData) & " conflicts"
Case TOOL_STRING+65
GetString = "Are you sure you wish to exit without enabling your Out of Office agent?"
Case TOOL_STRING+66
GetString = "Do you wish to disable 'Busy Time' for your 'Out of Office' calendar entry?"
Case TOOL_STRING+67
GetString = "Unable to disable 'Busy Time' for your 'Out of Office' calendar entry." & Chr(13) & "Entry not found."
Case TOOL_STRING+68
GetString = "Only the Owner or a Manager may modify the value of 'Owner'"
Case TOOL_STRING+69
GetString = "Your name cannot be found in the ACL, please contact your administrator."
Case TOOL_STRING+70
GetString = "You do not have sufficient rights to edit preferences for this database"
Case TOOL_STRING+71
GetString = "The 'Owner' of a mail file should be specified in 'Hierarchical' format." & Chr(13) & "i.e. John Doe/MyDomain"
Case TOOL_STRING+72
GetString = "Error creating AdminP request, please contact your administrator"
End Select
End Function
End Class
Class MemoStringTable
Function GetString(nIndex As Integer, vData As Variant) As String
Select Case nIndex
Case MEMO_STRING ' task notification mail message
GetString = "Notfication has been sent to "
Case MEMO_STRING+1 ' name a stationery document
GetString = "What would you like to call this stationery?"
Case MEMO_STRING+2
GetString = "This action cannot be performed on a new document."
Case MEMO_STRING+3
GetString = "Please select one document before executing this command."
Case MEMO_STRING+4 ' user trying to copy a document that has the prevent copy bit set
GetString = "This document is prevented from being copied. The body will not be copied into the new document."
Case MEMO_STRING+5
GetString = "Mail Schedule Profile not found. You must define your Mail schedule profile before you can schedule a document."
Case MEMO_STRING+6
GetString = "Your Mail Scheduler agent is currently disabled. The agent must be enabled before you can schedule a document."
Case MEMO_STRING+7
GetString = "Unable to locate your mail schedule profile. A mail schedule profile must exist in your database before you can schedule a document."
Case MEMO_STRING+8
GetString = "Your Mail scheduling profile is not configured to run the Notes mail scheduler. You must set the current status to enabled in order to schedule a document."
Function OkToPerformAction(vData As Variant, Byval iTitle As Integer, Byval lAction As Long, strDialog As String, Byval nOptions As Integer) As Integer
Dim note As NotesDocument
Set note = m_beobject.Document
Select Case lAction
Case ACTION_ACCEPT
Call note.replaceitemvalue("tmpActionType","A")
Case ACTION_DELEGATE
Call note.replaceitemvalue("tmpActionType","D")
Case ACTION_COUNTER_PROPOSE
Call note.replaceitemvalue("tmpActionType","T")
Case ACTION_RESCHEDULE
Call note.replaceitemvalue("tmpActionType","U")
Case ACTION_CANCEL
Call note.replaceitemvalue("tmpActionType","C")
Case ACTION_CONFIRM
Call note.replaceItemValue("tmpActionType","N")
Case ACTION_COMPLETED
Call note.replaceitemvalue("tmpActionType","F")
Case ACTION_COUNTER_ACCEPT
Call note.replaceitemvalue("tmpActionType","B")
Case Else
Call note.RemoveItem("tmpActionType")
End Select
If (m_nEventType = 2) Then Call note.replaceitemvalue("tmpTask","1")
'++LotusScript Development Environment:2:5:(Options):0:74
Option Public
Option Explicit
Use "CSEventClass"
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Class UIEventDocument
Declare Sub Initialize
Declare Function CSUIDocOpen(Byval iType As Integer, source As NotesUIDocument, mode As Integer, isnewdoc As Variant, continue As Variant) As UIEventDocument
'++LotusScript Development Environment:2:5:(Declarations):0:10
Const UI_FLAG_REPEAT = &h00000001
Const UI_FLAG_ALARM = &h00000002
Const UI_FLAG_WASSAVED = &h00000004
Const UI_FLAG_DONOTCLOSE = &h00000008
Class UIEventDocument
m_uidoc As NotesUIDocument
m_uiobject As UIEventObject
m_lFlags As Long
' Properties
Property Get UIObject As Variant
Set UIObject = m_uiobject
End Property
Property Get UIDocument As NotesUIDocument
Set UIDocument = m_uidoc
End Property
Property Get WasSaved As Integer
WasSaved = ((m_lFlags And UI_FLAG_WASSAVED) = UI_FLAG_WASSAVED)
End Property
Property Set WasSaved As Integer
If (WasSaved) Then
m_lFlags = m_lFlags Or UI_FLAG_WASSAVED
Else
If (m_lFlags And UI_FLAG_WASSAVED) Then m_lFlags = m_lFlags Xor UI_FLAG_WASSAVED
End If
End Property
Property Get DoNotClose As Integer
DoNotClose = ((m_lFlags And UI_FLAG_DoNotClose) = UI_FLAG_DoNotClose)
End Property
Property Set DoNotClose As Integer
If (DoNotClose) Then
m_lFlags = m_lFlags Or UI_FLAG_DONOTCLOSE
Else
If (m_lFlags And UI_FLAG_DONOTCLOSE) Then m_lFlags = m_lFlags Xor UI_FLAG_DONOTCLOSE
End If
End Property
Sub New(source As NotesUIDocument, nType As Integer, bOwner As Integer)
Set m_uidoc = source
Set m_uiobject = New UIEventObject(nType, bOwner)
End Sub
Sub PerformActionAndClose(vData As Variant, Byval iTitle As Integer, Byval dAction As Long, strDlg As String, Byval dOptions As Long)
If m_uiobject.OkToPerformAction(vData, iTitle,dAction,strDlg,dOptions) Then
If Not m_uidoc.editmode Then m_uidoc.editmode = True
Call m_uidoc.reload
Call m_uidoc.save
Call m_uidoc.close
End If
End Sub
Sub QueryOpen(nMode As Integer, bIsNew As Variant, bContinue As Variant)
Dim vBEObject As Variant, vSelectedDT As Variant
Dim ws As New notesuiworkspace
Dim note As NotesDocument, notetmp As NotesDocument
Dim item As NotesItem
Dim dtCalDate As NotesDateTime
Dim bNeedsDate As Integer
m_uidoc.AutoReload = False
Set note = m_uidoc.document
Set vBEObject = m_uiobject.BEObject
Set dtCalDate = m_uiobject.CSEventGetCalendarInstance(bNeedsDate, note)