Hi,
We currently have a problem with Domino Web Access Notes (6.5.1 and the Out of office agent.
Technote:
Out of Office Agent Disabled in Single Copy Template 6.x Mail File Everytime Design Task Runs
Versions 6.5.3, 6.5.2, 6.5.1, 6.5, 6.0.4, 6.0.3, 6.0.2 CF2, 6.0.2 CF1, 6.0.1, 6.0
Platform(s): Platform Independent
Date: 2004-12-29
Doc Number: 1154528
The workaround is to enable “Prohibit Refresh or Replace to Modify” in the Out of Office agent design properties.
I’ve made a script to do it automatically but it’s very slow to replace the design. Our mailfile are all in Single Copy Template (SCT).
Is there an explanation? Is there a way to speed up the process? Is it due to our SCT process?
Here’s my function:
Declare Function apiDesignReplace Lib “nnotes.dll” Alias “DesignReplace”_
(Byval ht As Long, Byval hDB As Long, Byval dw1 As Long, Byval dw2 As Long, Byval dw3 As Long, Byval dw4 As Long) As Integer
Function ReplaceDesign(Byval templateServer As String, Byval templateDB As String, Byval targetServer As String, Byval targetDB As String, Byval Createifneed As Variant) As Variant
ReplaceDesign = False
If templateServer = "" Then
status = apiNSFDbOpen(templateDB, htemplate)
Else
status = apiNSFDbOpen(templateServer & "!!" & templateDB, htemplate)
End If
If status<>0 Then
Print "Can't open template."
Exit Function
End If
If targetServer = "" Then
status = apiNSFDbOpen(targetDB, htarget)
Else
status = apiNSFDbOpen(targetServer & "!!" & targetDB, htarget)
End If
If staus<>0 And Createifneed Then
Print "Can't open database. Creating new."
If targetServer = "" Then
Call apiNSFDbCreate(targetDB, DBCLASS_BY_EXTENSION, True)
status = apiNSFDbOpen(targetDB, htarget)
Else
Call apiNSFDbCreate(targetServer & "!!" & targetDB, DBCLASS_BY_EXTENSION, True)
status = apiNSFDbOpen(targetServer & "!!" & targetDB, htarget)
End If
End If
If status<>0 Then
Print "Can't open database."
Call apiNSFDbClose(htemplate)
Exit Function
End If
Call apiDesignReplace(htemplate, htarget, 1, 1, 0, 0) -----Slow here
ReplaceDesign = True
Call apiNSFDbClose(htemplate)
Call apiNSFDbClose(htarget)
End Function
Thank you,
JYR