Lotus Notes / Domino Sonstiges > Tipps und Tricks

Wo sehe ich die UNID und NoteID eines Dokumentes

(1/1)

TMC:
Die Frage tauchte erst heute wieder auf, daher gebe ich das kurz nochmal wieder:



UNID / Unique ID / Universal ID

--- Zitat ---The universal ID, which uniquely identifies a document across all replicas of a database. In character format, the universal ID is a 32-character combination of hexadecimal digits (0-9, A-F).
If two documents in replica databases share the same universal ID, the documents are replicas.
If you modify the UNID of an existing document, it becomes a new document.
Saving a document with the same UNID as an existing document raises lsERR_NOTES_ERROR (4000).
--- Ende Zitat ---

Um die UNID eines Dokumentes sich anzeigen zu lassen, öffnet man die Dokumenteigenschaften und wechselt zum Propeller-Reiter (siehe Bild).

Die ersten beiden Zeilen beinhalten die UNID. Allerdings müssen die beiden Startzeichen "OF" und "ON", außerdem die beiden Doppelpunkte entfernt werden.
Das Ergebnis im Beispiel sieht dann so aus:
--- Zitat ---7F174219A17E7571C1256ECA006927CC
--- Ende Zitat ---

Note ID

--- Zitat ---The NoteID of a document, which is an 8-character combination of letters and numbers that uniquely identifies a document within a particular database.
A typical note ID looks like this: 000020FA. A note ID represents the location of a document within a specific database file, so documents which are replicas of one another generally have different note IDs. A note ID does not change, unless the document is deleted.
--- Ende Zitat ---

Um sich die NoteID anzuzeigen, wechselt man wieder zum Propeller-Reiter der Dokumenteigenschaften.
Hier beinhaltet die letzte Zeile die NoteID, allerdings müssen die ersten beiden Zeichen "NT" entfernt werden.
Das Ergebnis im Beispiel sieht dann so aus:
--- Zitat ---00000952
--- Ende Zitat ---

Die englischsprachigen Zitate sind aus der Designerhilfe.

-----------
Edit:
Weitere Ergänzungen erwünscht  :)
(Problematik NoteID --> besser nicht nehmen, etc. etc.)

fritandr:
Ich habe ein SmartIcon, das mir UNID und Note ID des jeweils aktuellen Dokumentes anzeigt.


--- Code: ---aktUNID:=@Text(@DocumentUniqueID);
aktNoteID:=@Text(@NoteID);

@Prompt([Ok];"UNID + NoteID anzeigen"; "UNID: "+ aktUNID + @Char(10) + "Note ID: "+ aktNoteID)
--- Ende Code ---

Viele Grüße
fritandr

TMC:

--- Zitat von: fritandr am 28.07.04 - 15:39:32 ---Ich habe ein SmartIcon, das mir UNID und Note ID des jeweils aktuellen Dokumentes anzeigt.
--- Ende Zitat ---

Vielleicht noch praktischer als Smarticon:


--- Code: ---_UNID:=@Text(@DocumentUniqueID);
_NoteID:=@Right( @Text(@NoteID); 8);

@If(Form = "";
    @Return("");
    @Do(
@Command([MailComposeMemo]);
@Command([EditGotoField]; "Body");
@Command([EditInsertText]; "UNID vom ausgewählten Dokument:");
@Command([EditInsertText]; @NewLine);
@Command([EditInsertText]; _UNID);
@Command([EditInsertText]; @NewLine);
@Command([EditInsertText]; @NewLine);
@Command([EditInsertText]; "NoteID vom ausgewählten Dokument:");
@Command([EditInsertText]; @NewLine);
@Command([EditInsertText]; _NoteID)
)
)
--- Ende Code ---

Damit wird ein neues Mail erzeugt und die ID's ins Body-Feld kopiert. Damit kann man sich diese dann z.B. ins Clipboard kopieren.....

wflamme:
Oder alternativ dazu Rechtsklick aufs Doc, als Doc-Link kopieren und dann in einen Texteditor einfügen. Das sieht dann zB so aus:


Wolfgang Flamme/mz-online - Open Air Blogging Party am 06.08, Lust zu kommen?
<NDL>
<REPLICA C1256E9D:005AD858>
<VIEW OF1F5ABA6E:3114748D-ON80256C3E:00421904>
<NOTE OF1E840DB1:F3A2E96E-ONC125704E:0008D638>
<REM>Database 'Wolfgang Flamme/mz-online', View 'Inbox', Document 'Open Air Blogging Party am 06.08, Lust zu kommen?'</REM>
</NDL>

 :D

Also (fast) alles da, was man braucht.

DaWutz:
Wenn die NoteID max 8 Stellen hat - und das vermutlich in Hex (FF FF FF FF) - da heißt das doch eigentlich auch, das dies die maximale Anzahl von Docs in einer DB markiert (4.294.967.295), oder?

Aber eine DB mit solchen Ausmaßen ist wohl eher utopisch, oder? Wir haben DBßs im Einsatz die recht komplex sind, mit ca. 1,5 Mio Docs und die sind teilweise schon recht "träge".

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln