@PushWithFormula
Syntax
@PushWithFormula(FROMDBHANDLE1;TODBHANDLE2;FORMULA3;NOTECLASSES4);
@PushWithFormula(FROMDBHANDLE1;TODBHANDLE2;FORMULA3;NOTECLASSES4;FIELDNAMETEXT5);
@PushWithFormula(FROMDBHANDLE1;TODBHANDLE2;FORMULA3;NOTECLASSES4;FIELDNAMETEXT5;FNOPTIONS6);
@PushWithFormula(FROMDBHANDLE1;TODBHANDLE2;FORMULA3;NOTECLASSES4;FIELDNAMETEXT5;FNOPTIONS6;FNUPDFLAGS7);
Description
Replicates the database with the DBHANDLE FROMDBHANDLE1 with the database with the DBHANDLE TODBHANDLE2 in the direction from FROMDBHANDLE1 to TODBHANDLE2, replicating only the documents that match the Notes-compatible selection formula TEXT FORMULA3 . The databases do not have to be replicas of each other.
If TEXT FIELDNAMETEXT5 contains a field name, this field is used as the update indicator.
(To update the document, the field must exist in the From document and differ from the field in the To document.)
A FNLIST is returned:
Element Meaning
1 UpdateCount TODBHANDLE2
2 CreateCount TODBHANDLE2
3 DeleteCount TODBHANDLE2
NOTECLASSES4:
DEC BIT Meaning
00000 XX No Notes no documents
00001 01 Documents data documents
00002 02 Policy Note About-database document
00004 03 Form Note form design documents
00008 04 View Note view design documents
00016 05 Icon Note icon document
00032 06 Design Collection Note view documents
00064 07 ACL Info Note ACL info document
00128 08 Help-Index-Note
00256 09 Help Note help database document
00512 10 Filter Note macro design documents
01024 11 Field Note field design documents
02048 12 Replication Note replication documents
04096 13 Private_Design private design documents
32768 16 Default Note of Each the default document of each
32767 01-15 Notes all documents
32766 02-15 All Non-Document Notes all non-data documents
(To specify multiple document classes, add the values of the relevant classes or build them using @BitVektor )
FNOPTIONS6:
Bit HEX Meaning
01 0001 Localize links (Doc; View; DB) in databases with different replica IDs.
02 0002 Deletes documents in TODB that do not occur in FROMDB (taking FORMULA3 und NOTECLASSES4) not vorkommen.
FNUPDFLAGS7:
To combine the options, the values must be added.
DEC Meaning
0001 Force the change in any case (default and should always be specified)
0512 Deletion without deletion stub
Example:@PushWithFormula(FROMDBHANDLE1;TODBHANDLE2;FORMULA3;NOTECLASSES4;FIELDNAMETEXT5;FNOPTIONS6;FNUPDFLAGS7);
FROMDBHANDLE1:=@OpenDB("FROM.NSF");
TODBHANDLE2:=@OpenDB("TO.NSF");
FORMULA3:="Form=\"Test Form1\"";
NOTECLASSES4:=1;
FIELDNAMETEXT5:="Update";
FNOPTIONS6:=513;
FNUPDFLAGS7:=2;
Ret:=@PushWithFormula(FROMDBHANDLE1;TODBHANDLE2;FORMULA3;NOTECLASSES4;FIELDNAMETEXT5;FNOPTIONS6;FNUPDFLAGS7);
@LogReport(Ret);
FROMDBHANDLE1:=@CloseDB(FROMDBHANDLE1);
TODBHANDLE2:=@CloseDB(TODBHANDLE2);
Note : This text was machine-translated and may contain inaccuracies.
