Насколько я понял, у тебя где-то слетели репликационные установки из-за чего документы стали обрубленными. Так?
Вот нашел такое
Problem:
Via the Notes API, is it possible to toggle the checkbox options under Database, Replication, Settings, Advanced, Replicate, Incoming?
Solution:
There is no direct way to toggle these replication settings. You can determine, however, which boxes are currently checked off (selected) by creating a Replication Formula Note that includes (or excludes) the appropriate Note Classes in the TEXT_LIST of the $ReplClassMask item of that note. This functionality is illustrated in the API sample "sel_rep.c".
The following excerpt from the sel_rep.c sample shows how to set the appropriate Note Classes in the TEXT_LIST of the $ReplClassMask item when creating the "Replication Formula Note" (and thus shows how to check or uncheck these options):
Excerpt from sel_rep.c:
.
#define MY_NOTE_CLASSES (NOTE_CLASS_DOCUMENT | \
NOTE_CLASS_INFO | \
NOTE_CLASS_FORM | \
NOTE_CLASS_VIEW | \
NOTE_CLASS_ICON | \
NOTE_CLASS_DESIGN | \
NOTE_CLASS_ACL | \
NOTE_CLASS_HELP_INDEX | \
NOTE_CLASS_HELP | \
NOTE_CLASS_FILTER | \
NOTE_CLASS_FIELD | \
0)
.
.
.
/*
* Create the $ReplClassMask item. There is only one entry in the text
* list, since in this example the replication criteria are the same
* regardless of which server the documents are being pulled from. If
* more than one server were specified in $ReplSrcServers item,
* character strings representing the classes of documents to be replicated
* from the corresponding servers would need to be added to the text list.
*/
/*
* Reset start length to zero, and point the item pointer to the
* start of the buffer.
*/
wItemLength = 0;
pItem = pBuffer;
*((USHORT *) pItem) = 1; /* Set number of entries. */
pItem += sizeof(WORD);
wItemLength += sizeof(WORD);
/*
* Convert the note class mask to a character string.
*/
iClasses = MY_NOTE_CLASSES;
_itoa (iClasses, ClassMaskString, 10);
/*
* Set length of mask string.
*/
*((WORD *) pItem) = strlen(ClassMaskString);
pItem += sizeof(WORD);
wItemLength += sizeof(WORD);
/*
* Copy mask string.
*/
memcpy(pItem, ClassMaskString, strlen(ClassMaskString));
pItem += (strlen(ClassMaskString));
wItemLength += (strlen(ClassMaskString));
/*
* Append the $ReplClassMasks item to the note.
*/
if (sError = NSFItemAppend(hNote,
ITEM_SUMMARY,
REPLFORMULA_NOTECLASS_ITEM,
sizeof (REPLFORMULA_NOTECLASS_ITEM)-1,
TYPE_TEXT_LIST,
pBuffer,
wItemLength))
{
OSUnlockObject (hMem);
OSMemFree (hMem);
NSFDbClose(hDB); /* Close database */
LAPI_RETURN (ERR(sError));
}
И такое
Ссылка скрыта от гостей