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.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



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

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


sai k rishna595 10.Oct.12 08:04 AM a Web browser
Applications Development All Releases All Platforms


Hi Team ,

I am have a web form and wen user enters the values and save the document , a webquery save agent is running

In my agent i just retrieve the count of the documents related to particular category.

For ex : In myregion view which is categorized by region in the first column and it is sorted.

If i have 3 documents whose region is "india",then the web user adds one more document by selecting region field as india and submits the document -> in my agent it should show the count as 4 right ?(3 allready existng + 1 newly created)

my web query save agent of that form

dim s as new notessession
dim db as notesdatabase
dim vw as notesview
dim doc as notesdocument
dim doccoll as notesdocumentcollection

set db = s.currentdatabase()
set vw = db.getview("myregion")
set doc = db.documentcontext

call doc.save(true,true)
call vw.refresh()
set doccoll = vw.getalldocumentbykey(doc.region(0))
in the above line region value is "india"

print "india docs collection count is -" & doccoll.count

the above statement prints me count as 3 instead of four.

Please help me out why it is not taking the newly created document into count

Thanks & regards
sai krishna






document collection count (sai k rishna595... 10.Oct.12)
. . From the Help file (Mark XY Brown 10.Oct.12)
. . . . RE: From the Help file (sai k rishna595... 10.Oct.12)
. . . . . . RE: From the Help file (Mark XY Brown 10.Oct.12)
. . RE: document collection count (Rich Schwartz 10.Oct.12)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

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

Resources

 Resources
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

Wikis

 Wikis
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