Domino 9 und frühere Versionen > ND6: Entwicklung
Antwortdokumente und Leser und Autorenfelder
Axel:
So einfach geht's dann doch wieder nicht.
Les' dir mal die Hilfe zu notesdocument.ParentDocumentUNID durch und schau dir deinen Code dann nochmal genau an. Dann wirst du erkennen, dass das so nicht funktionieren kann.
Wo hast du z.B. die Variable notesdocument deklariert und initialisiert. Außerdem passt der Typ von parent nicht zum Typ des Rückgabewertes von ParentDocumentUNID. Da steckt der Rückgabetyp ja schon im Namen der Funktion.
Axel
cash:
so sieht jetzt der anfang des Scripts aus:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim agent As NotesAgent
Dim respdoc As NotesDocument
Dim parent As NotesDocument
Set db = session.CurrentDatabase
Set agent = session.CurrentAgent
Set respdoc = db.GetDocumentByID(agent.ParameterDocID)
Set parent = db.GetDocumentByID(respdoc.ParentDocumentUNID)
Somit sollte ich beide ID´s haben oder?
Wie kriege ich dann das Feld Status von respdoc nach parent?
Gruß
Thomas Schmidt
koehlerbv:
parent.Status = respdoc (0)
Call parent.Save (True, False, True)
Bernhard
DerAndre:
Du meintest doch bestimmt
parent.Status = respdoc.Status (0)
koehlerbv:
Danke! Da habe ich schneller gedacht als geschrieben.
Bernhard
Navigation
[0] Themen-Index
[#] Nächste Seite
[*] Vorherige Sete
Zur normalen Ansicht wechseln