Domino 9 und frühere Versionen > ND6: Entwicklung
Collections
dirk_2909:
Eine noch bessere Idee gibt es nicht?
set collA = View.getAllDOcumentsByKey( "~~~++++**~~" , true )
forall strK in doc.SGruppe
set collB = view.getAllDOcumentsByKey( strK , true )
set doc = collB.GetFIrstDocument
While not doc is Nothing
call collA.AddDocument( doc )
......
...
End forall
:-:
flaite:
--- Zitat von: dirk_2909 am 06.02.07 - 08:06:24 ---Eine noch bessere Idee gibt es nicht?
--- Ende Zitat ---
Grundsätzlich nicht. Es gibt in NotesDocumentCollection keine Methode
addAnotherCollection. Nur einzelne Dokumente.
--- Zitat von: dirk_2909 am 06.02.07 - 08:06:24 ---call collA.AddDocument( doc )
--- Ende Zitat ---
Ich würds vermutlich in eine function auslagern. Ist flexibler. Oder?
Function add(col as NotesDocumentCollection, newElement as Variant) as NotesDocumentCollection
return coll.AddDocument( newElement )
end sub
dirk_2909:
--- Zitat ---Ich würds vermutlich in eine function auslagern. Ist flexibler. Oder?
--- Ende Zitat ---
Kommt auf die Situation an ;) ;D
Ich habe ja nur ein paar zeilen Code hingekleckst. Wie und wo diese Zeilen hinkommen ist ja zur Beantwortung der Frage nicht allzu relevant 8)
flaite:
--- Zitat von: dirk_2909 am 06.02.07 - 08:40:14 ---Kommt auf die Situation an ;) ;D
--- Ende Zitat ---
Ja auf jeden Fall Das Auslagern hat Vor- und Nachteile. Fiehl mir nur eben so ein.
C_T:
hi@all
Ich danke euch allen
ich habs halt so gemacht mit docs einzeln dazu und soweit läuft es...
Vielen Dank
CU
C_T
P.S.
Klasse Forum
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln