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
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