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?

>
EXPERT RESPONSE
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


  • Sound Off! -   Be the first to post a message to Sound Off!


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


    RELATED CONTENT
    LotusScript
    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
    Copying a rich-text field with attachments to a Lotus Notes document
    How to convert Lotus Notes documents to .PDF files
    Can I stop Lotus Domino Server from transforming embedded images into attachments?

    LotusScript
    Fail-safe rich-text validation using LotusScript
    How to export Lotus Notes views to a Microsoft Excel database
    Modifying LotusScript code for date and time handling
    Create file system labels for Microsoft Excel and Word mail merges
    Fix Lotus Notes 8.0 issues when launching Microsoft Office applications
    Capture rich-text comments in Lotus Notes fields using LotusScript
    Retrieve cell values from tables in a Lotus Notes rich-text field
    Adding new variable-sized, multi-value fields to Lotus Notes documents
    Keep the original Universal ID when copying a Lotus Notes document
    Fix 'Audit Trail' error when opening Notes docs

    Lotus Notes Domino Replication and Synchronization
    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
    Replication best practices for Lotus Domino disaster recovery
    How and why to change replica IDs during a Lotus Notes Domino upgrade
    Lotus Notes replication snafu: Accidentally deleted archived email

    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

    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsWebcastsWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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