Home > Ask the Domino Experts > LotusScript Questions & Answers > Use DXL utilities for advanced replication settings in Notes
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Use DXL utilities for advanced replication settings in Notes

Cregg Hardwick EXPERT RESPONSE FROM: Cregg Hardwick

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 28 February 2008
How can I use LotusScript to automatically adjust advanced replication settings that activate when Lotus Notes users click on a button in an email?

>
LotusScript hasn't been exposed to advanced replication settings. In theory, you should be able to do this using the Domino Extensible Language (DXL) utilities. You can use DXLexporter to write the required settings to a file and modify the file (either manually or programmatically, depending on your needs). Next, you would use DXLImporter to load the results into the target database. DXLexporter and DXLimporter, but one thing that isn't immediately obvious is that you must also build a NoteCollection. A NoteCollection lets you specify what to export, so you can set "SelectReplicationFormulas," "SelectAllAdminNotes," or "SelectionFormula" to specify the exact settings that you want to use. To build such a note collection and export it to DXL, use a command similar to:
  Dim session As New NotesSession
  Dim db As NotesDatabase
  Set db = session.CurrentDatabase
  Dim stream As NotesStream
  Set stream = session.CreateStream

  Dim filename as string
 Filename = "C:\"+db.title+".dxl"
  If stream.Open(filename) Then
  Dim nc As NotesNoteCollection
Set nc = db.CreateNoteCollection(False)
nc.SelectReplicationFormulas = True
Call nc.BuildCollection
 
  Dim exporter As NotesDXLExporter
Set exporter = session.CreateDXLExporter(nc, stream)
Call exporter.Process
  End If

Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from SearchDomino.com:

  • Featured Topic: Domino Extensible Language (DXL)
  • Crash Course: Lotus Notes Domino replication primer
  • Crash Course: LotusScript tips and tutorials
  • Reference Center: LotusScript
  • Reference Center: Lotus Notes Domino Replication and Synchronization


  • Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    LotusScript
    Can you use LotusScript to read a text file attached to a Notes doc?
    Customize the principal field of outgoing email messages
    Can I use LotusScript to merge cells in a Microsoft Word table?
    Modifying LotusScript code for date and time handling
    Use LotusScript to create encrypted replicas
    Write a LotusScript agent to automate file attachments
    Troubleshooting a scheduled agent not running on a Global Notes Architecture (GNA) server
    Setting up local replication of a Lotus Notes database for offline employees
    Creating a link on an HTML page to a Microsoft Word attachment in a Lotus Notes database
    LotusScript to extract and move attachments to a Lotus Notes mailbox or file folder

    LotusScript
    LotusScript finds the first occurrence of a string from the right
    Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
    Search Microsoft Active Directory with LotusScript
    Three steps to trap and handle save conflicts with LotusScript
    Troubleshoot agents by displaying LotusScript variables online
    LotusScript sorts lists alphabetically
    Run or restart Notes/Domino agents via text messages
    LotusScript code rebuilds corrupted busytime.nsf file
    Soft-code item names to facilitate LotusScript management
    LotusScript agent automates selective mail file replication

    Lotus Notes Domino Replication and Synchronization
    LotusScript agent automates selective mail file replication
    Give external users access to workflow-based Notes Domino applications
    Tivoli Directory Integrator synchronizes Notes Domino 8 directories
    Avoid replication issues when editing Lotus Notes response documents
    Use LotusScript to create encrypted replicas
    Lotus Notes Domino replication primer
    More efficient local Lotus Notes database replication
    BlackBerry Intellisync error: 'A Lotus Notes error has occurred. Please see log for details.'
    Setting up local replication of a Lotus Notes database for offline employees
    Routing and replication issues with remote Lotus Domino servers

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice



    Lotus Notes Domino on Blackberry and mobile devices
    HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts