Search DominoPower's 11,420 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
Domino 5.0 LotusScript enhancements: the NotesReplication class
By Tony Patton

Lotus has finally shipped Release 5.0, and it looks like it was worth the long wait. With that in mind, let us continue our tour of LotusScript enhancements. This month we will take a look at the brand new NotesReplication class.

The NotesReplication class gives us access to the replication settings for a database. Sadly, it does not grant access to the replication formula.

Replication
Lets take a quick refresher course on replication before exploring the NotesReplication class. Many of you may be familiar with this topic. Even so, you may want to read through this section as a review.

One of the Domino's most useful abilities is replication; you can keep multiple copies of a single database on multiple servers and/or workstations. These copies are called replicas. The replica mechanism gives many different users access to the same information regardless of their location and whether they have a persistent network connection or not. Information in the replicas can be updated or deleted.

Replication is the process of synchronizing (i.e., exchanging the modifications) the information from all of the replicas. Through replication, Notes makes all of the replicas essentially identical -- over time. A replica has the same ID has the original database. This replica ID is used by the system to identify replicas. The replica ID for a database can be viewed in the second tab in the Database Properties info box. Figure A shows the replica ID for a database.

FIGURE A


Here's the replica ID for a database. Roll over picture for a larger image.

A database can be replicated by right clicking on the database icon and selecting replicate. Alternately, you can visit the Replicator tab on the Workspace, select a database from the list, and press the Start button. Figure B shows the replicator page on my laptop.

FIGURE B


Here's how I've configured my replication options. Roll over picture for a larger image.

NotesReplication class
While the NotesReplication class does not allow you to start or stop the replication of a database, it does give you access to the various replication settings for it. The following properties exist for the NotesReplication class:

  • Abstract: Signals whether large documents should be truncated and attachments removed or not;
  • CutoffDate: Today's date minus the cutoff interval;
  • CutoffDelete: Signals whether documents older than cutoff date should be deleted or not;
  • CutoffInterval: The number of days after which documentss are deleted, if CufoffDelete is set to True;
  • Disabled: Signals if replication is disabled or not;
  • DoNotBrowse: Signals if the database should not be shown in Open Database box;
  • DoNotCatalog: Signals if the database should be listed in Database Catalog;
  • HideDesign: Signals if the database design is hidden or not;
  • IgnoreDeletes: Signals whether deleted items should be replicated or not;
  • IgnoreDestDeletes: Signals whether deleted items from destination database should be replicated or not;
  • MultiDBIndex: Signals whether the database can be included in a multidatabase index or not;
  • NeverReplicate: Signals if replication is disabled or not;
  • NoChronos: Signals whether background agents are disabled or not;
  • Priority: The replication priority for the database (Low, Medium, High, or not set).


1  ·  2  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
Latest Lotus Headlines
New Notes/Domino Technotes published about Chile's extended daylight saving time
SnnT: How to prevent Google from listing your Sametime Server
How to send someone an email that shows your calendar availability
"The collection has become invalid"
More XPages onclick event weirdness...
Domino 8.5.1 Fix Pack 1 Interim Fix 1 (8.5.1 FP1 IF1) - DAOS Fixes
Domino Designer 8.5 Tip: Where Working Sets Are Stored
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Make Mafia Wars an offer it can't refuse
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Removing an Office installation that doesn't want to go away
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by December 31 to save $350.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login