I want to set the advanced replication settings of a database to include the design elements, agents, acl, and deletions.
the simplified code below isn’t able to get a handle on the replication entry:
Option Public
Option Explicit
Sub Initialize
Dim session As New notessession
Dim server_directory As NotesDbDirectory
Dim file As NotesDatabase
Dim rep As NotesReplication
Dim re As NotesReplicationEntry
Set file=session.GetDatabase("servername1/domain", "filename.nsf")
Set rep = file.ReplicationInfo
Set re = rep.GetEntry("servername1/domain", "servername2/domain", False)
re.IsIncludeForms = True
re.IsIncludeAgents = True
re.IsIncludeACL = True
re.IsIncludeDocuments = True
Call re.Save()
End Sub
This is the offending line of code in that in the “variables” tab of the debugger, no value is present:
Set re = rep.GetEntry(“servername1/domain”, “servername2/domain”, False)
I also try:
Set re = rep.GetEntry(“-”, “-”, False)
and:
Set re = rep.GetEntry(“-”, “-”, True)
and no cigar,
any ideas on how to get this thing to work?
thks,
-MC