105 pts.
 DC.count examples in Lotus Domino
I am fairy new at dominos and I am not very good at loops yet and stuff like that. 

I need to modify an agent to load a field using the dc.count

so far a i have

set dc = view.getalldocumentsbykey(key, true) doc.actionitems = dc.count

if dc.count = 0 then

end if

I really don't know what to do in this loop.

The thing i am trying to get across is that I have an embedded view within a view.  on the view, If a meeting is held it is Y if not it is N. They each have agenda items that should be written in the embedded view. Sometimes  the meeting is Y and the didn't set the agenda items. That is what I want to put in the actionitems field if the meeting happened it is Y and no agenda items =Not completed in red. If the meeting happened and agentitems are set then Completed. If the meeting has not happened yet and N then leave blank.  In the new field

Any way someone could put an example for me here so I could get the hang of it?



Software/Hardware used:
Lotus dominos 7.0
ASKED: February 18, 2011  8:21 PM
UPDATED: February 22, 2011  2:34 PM

Answer Wiki:
Dim session as New NotesSession Dim db as NotesDatabase Dim dc as NotesDocumentCollection Dim doc as NotesDocument Dim view as NotesView Set db = session.currentdatabase set view = db.getview("viewname") set dc = view.getalldocumentsbykey("KEY", true) if dc.count > 0 then ' process dc set doc = dc.getfirstdocument() do until doc is nothing doc.actionitems = dc.count call doc.save(True, False) set doc = dc.getnextdocument(doc) Loop end if Hope this helps, best I can do with the info I have from your post
Last Wiki Answer Submitted:  February 22, 2011  2:34 pm  by  SlikTool   1,830 pts.
All Answer Wiki Contributors:  SlikTool   1,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _