Possible to overwrite replication formula on local replicas?

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 )

Subject: Possible to overwrite replication formula on local replicas?

Do you allow replication formulas to replicate to the local db?

Why not just get a handle on the local db and change hte formula in that copy then replicate

Subject: Possible to overwrite replication formula on local replicas?

The code looks right, so there must be a reason why you’re asking… What, if anything, happens when you run it?

Subject: RE: Possible to overwrite replication formula on local replicas?

Yes, there is :-). It seems to work, but it doesn’t save the formula on the local replication.