3,845 pts.
 Create a local replica with replication formula
I want to have a button that will create a local replica of the current database and assign a replication formula specific to that user. I have tried this with sample code in Domino Designer Help and with code on SearchDomino.com. Both failed. The Help code kicked off the new replica before I could assign the formula, so a full replica was made. The Search Domino code is flawed, disabling replication on the server db before attempting to create the local replica. This obviously fails because the server db can't replicate. Does anyone know how this can be done? I basically want to automatically set the values that would appear in a New Replica dialog so the user does not have to set them. These are the examples I have tried to adopt to this purpose, which failed as described above.

Help example: http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.designer.domino.main.doc/H_EXAMPLES_REPLICATIONENTRY_CLASS.html

Searchdomino example: http://searchdomino.techtarget.com/tip/Create-a-replica-stub-with-Lotus-Script

Thanks in advance for your help.

 



Software/Hardware used:
ASKED: July 5, 2011  8:36 PM
UPDATED: July 5, 2011  8:50 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _