Function EN Version 1.90

@SetDBReplicaInfo

Database NotesAdmin NotesSystem Replication

Syntax

@SetDBReplicaInfo(DBHANDLE1;REPLICAID2;FLAGS3;CUTOFFINTERVAL4;CUTOFFTD5);

Description

Sets in the database identified by DBHANDLE DBHANDLE1 the replication information: replica ID TD REPLICAID2, replication flags FN FLAGS3, replication purge interval FN CUTOFFINTERVAL4 and replication cutoff time TD CUTOFFTD5. In addition, the replica ID of the database is returned as the @Function result if the @Function was executed successfully.

FLAGS3:
BIT   DEC   HEX   MEANING

01   00001   0001   Reserved (COPY_ACL)
02   00002   0002   Reserved
03   00004   0004   Replication disabled (user-changeable)
04   00008   0008   Do not mark modified documents as unread
05   00016   0010   Do not replicate deleted documents further
06   00032   0020   Design is hidden
07   00064   0040   Do not list in the database catalog
08   00128   0080   Delete documents saved before the deletion date
09   00256   0100   Replication disabled (not user-changeable)
10   00512   0200   File attachments are not replicated
11   01024   0400   Do not show in the "Open Database" list
12   02048   0800   Do not apply Chronos to this database.
13   04096   1000   Reserved
14   08192   2000   Reserved
15   16384   4000   Priority bit 1
16   32768   8000   Priority bit 2

XX   16384   4000   High priority
XX   49152   C000   Low priority

Default:
XX   00000   0000   Medium priority

(To specify multiple options, add the DEC values of the corresponding lines, or build FLAGS3 using @BitVektor and BIT values.)

Example: @SetDBReplicaInfo(DBHANDLE1;REPLICAID2;FLAGS3;CUTOFFINTERVAL4;CUTOFFTD5);

DBHANDLE1:=@OpenDB("TEST.NSF");
REPLICAID2:=@Now;
@SetDBReplicaInfo(DBHANDLE1;@Now;0;90;CUTOFFTD5)
The following values are reset:
REPLICAID2 is set to a new value.
FLAGS3 is set to 0 (that is, none).
CUTOFFINTERVAL4 is set to 90 (the default Notes value).
CUTOFFTD is set to 90 days ago.

Note : This text was machine-translated and may contain inaccuracies.