Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

Shawn Pelletier 27.Feb.13 09:20 AM a Web browser
Applications Development 6.5.4 Windows XP

I currently working on an agent that will loop through a view, grab all documents with a certain key in an assigned field and will create an array with the invoice amount of that document. I then want to sum all the values in the array. I know what you're thinking, why don't I just use the totals function in the column of the view? well, I want to perform a number of mathematical function on the total after I have it. I need help with the logic and perhaps need direction with the correct statements to use. Here is what I have so far. I'm only posting the portion of code I'm unsure about, if you need to see all of it, that's not a problem......

'Loop through Document Collextion
Do While Not (RequestDoc Is Nothing)

'Grab data from requested By Column
Set RequestedBy = RequestDoc.GetFirstItem("Requested_By")
Set DC = RequestView.GetAllDocumentsByKey(RequestedBy.Text, True )

'If Requested By = CVPS
If RequestedBy = "CVPS" Then

'Here is where I want to loop through all the documents, grab the value in the invoiced field, add it to an array, and at the end of the array do all my math functions

End If

I was thinking I need to use a Forall then nest a redim, but I'm not sure. I know I'm missing other functions as well. Please, any help would be appreciated! thank you!

I have searched through this forum for other threads that would help give me direction.

Need Help with Agent Script Logic (Shawn Pelletier... 27.Feb.13)
. . RE: Need Help with Agent Script Log... (Martha Geppert 27.Feb.13)
. . RE: Need Help with Agent Script Log... (Karl-Henry Mart... 27.Feb.13)

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite