Is it possible to overwrite a user’s replication formula in a local copy via lotusscript? Here’s the code I have now that runs on database PostOpen and QueryClose.
Set rep = db.ReplicationInfo
Set re = rep.GetEntry("-", namer.canonical, False)
repdoc.replication_formula = re.formula
If InStr( re.formula , "gtadmContentStatus" ) < 1 Then
tmp = "Old Formula:" & Chr( 10 ) & re.formula & Chr( 10 ) & Chr( 10 )
re.Formula = re.formula & { | form = "gtadmContentStatus" }
Call re.save
End If
'>>> Replicate Local and Server Copies <<<
Call db.Replicate( server )