DC.count examples in Lotus Domino

105 pts.
Tags:
Lotus Domino
Lotus Domino 7
Lotus Domino View
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

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following