Hi All,
I have a document with embedded view.
The embedded view is displaying by 'showsinglecategory" using “uniqueid”
How can i get handle to the embedded view docs by using unique id.
i have to get some other field values from that embedded view docs.
Is there any way to get handle of the embedded view documents?
Thanks in advance,
Kamal.
Subject: Get handle of embedded view documents
Easiest way would be to write some code that accesses the view e.g.
Dim session as New NotesSession
Dim db as NotesDatabase
Dim view as NotesView
Dim col as NotesDocumentCollection 'or use a ViewEntryCollection if you need the documents in view order
Dim doc as NotesDocument
'Code assumes you have already set uidoc to point to the current document open in the ui
Set db=session.currentDatabase
Set view=db.getView(“embeddedViewName”)
Set col=view.getAlldocumentsbyKey(uidoc.fieldgettext(“uniqueID”))
Set doc=col.getFirstDocument
do until doc is nothing
'…
'do your thing!
'…
Set doc=col.getnextdocument(doc)
Loop