Function : Database

NSFDbGenerateOID - Create new Originator ID for note in database.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbGenerateOID(
DBHANDLE hDB,
OID far *retOID);

Description :

This function generates a new Originator ID (OID) used to uniquely identify a note. Use this function when you already have a note open and wish to create a totally new note with the same items as the open note. This function is commonly used after NSFNoteCopy, because the copy created by NSFNoteCopy has the same OID as the source note.

You do not need NSFDbGenerateOID when creating a new note from scratch using NSFNoteCreate, because NSFNoteCreate performs this function for you.

If the database resides on a remote Lotus Domino Server, the current user must to have the appropriate level of access to carry out this operation.

Parameters :

Sample Usage :


  /* Update Note Info as if a delete & an add had taken place      */

 if (error_status = NSFDbGenerateOID(db_handle_dst, &new_oid))
      goto Exit;
  NSFNoteSetInfo(note_handle, _NOTE_OID, &new_oid);


See Also :

NSFNoteGetInfo
----------------------------------------------------------------------------------------------------------