Domino 9 und frühere Versionen > Entwicklung

Autoren eines Doks

(1/3) > >>

TMC:
Ich brauche in einer Variablen die Namen aller Autoren eines NotesDocument.

Gibts da was? In der Designerhelp hab ich nix gefunden.

Ein kurzer Hint (ja, .... / nö, gibt's ned) reicht mir schon  ;)

Wenn "nö", dann bastle ich mir eine Function, die alle Items checkt auf die IsAuthors property und lese entsprechend den Content aus.

fritandr:
Hallo Matthias,

suchst Du sowas?

1.   This script prints the name of each author of a document. For example, if Ivan Ash created the document and Kate Gaston modified it, the script displays "Ivan Ash" and "Kate Gaston."

Dim doc As NotesDocument
'...set value of doc...
Forall a In doc.Authors
  Messagebox( a )
End Forall´

Gruß
Andreas

TMC:
Hi Andreas,

nicht ganz, designer Help sagt:

--- Zitat ---Authors property
Read-only. The names of the people who have saved a document.

--- Ende Zitat ---

Ich brauche aber eher sowas:

--- Code: ---Forall itm In doc.Items
If itm.IsAuthors Then
  vAuthorArray = Arrayappend(vAuthorArray, itm.Values)
End If
--- Ende Code ---

Hab mir gedacht, es gibt evtl eine Function oder andere Möglichkeit....

Trotzdem Danke !

Matthias

*edit*
ich sehe gerade, dass ich mich nicht klar ausgedrückt habe, sorry Andreas:
Prinzipiell brauche ich die Members aller Autorenfelder. Sowas wie @Authors, aber @Authors liefert ja (je nach Kontext) nur den Inhalt des 1. Autorengfeldes.

fritandr:
Schade, das wäre aber auch zu einfach gewesen.

Dann muss ich wohl noch weitersuchen.

TMC:

--- Zitat von: fritandr am 25.09.04 - 22:18:04 ---Schade, das wäre aber auch zu einfach gewesen.
Dann muss ich wohl noch weitersuchen.

--- Ende Zitat ---

Kein Problem  ;) Du brauchst aber nicht extra danach suchen. Ich nehme einfach die item.IsAuthors property, damit bekomme ich dann die Inhalte.
Hab nur gemeint, ob es evtl. noch eine andere Property oder so dafür gibt um einfacher da ran zu kommen....

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln