Skip to main content
 
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

  

Sign in to participate PreviousPrevious NextNext


lathan reddy 17.Apr.12 10:24 AM a Web browser
Domino Designer 6.5.2 Windows XP


Hi All,

Need To Filter the Duplicate documents in a view (Suppose Employee Id :5632 have five documents,I need to filter those 5 documents into one view).Below code i could not able to get 5 documents i can able to filter 4 documents.

Suppose if i filter those five documents into one view( Duplicatedocuments view) which are having same employee id 5632. after filterd i have deleted 4 documents from (Duplicatedocuments view) there is one more document have employee id 5632 Right. that document automatically move to main view (Why because we dont have same duplicate id documents right)

Can you Pleas adjust the code some one please accordingley
("Duplicatedocuments view") view selection formula SELECT Form ="Employee" & isdup="Yes"

Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim dup As NotesDocument
Dim vu As NotesView
Dim vecoll As NotesViewEntryCollection
Dim ventry1 As NotesViewEntry
Dim ventry2 As NotesViewEntry

Set db=s.CurrentDatabase
Set vu=db.GetView("X")
Set vecoll = vu.AllEntries

If vecoll Is Nothing Then
Exit Sub
End If

Set ventry1 = vecoll.GetFirstEntry
Set doc=ventry1.Document


While Not doc Is Nothing

Set ventry2=vecoll.GetNextEntry(ventry1)
If ventry2 Is Nothing Then
Exit Sub
End If
Set dup = ventry2.Document
'Msgbox doc.EID(0)+"and"+dup.EID(0)

While doc.EID(0)=dup.EID(0)
'Msgbox doc.EID(0)
Set ventry2=vecoll.GetNextEntry(ventry2)
dup.isdup="Yes"
Call dup.Save(True,False)
If ventry2 Is Nothing Then
Set dup=Nothing
Exit Sub
Else
Set dup=ventry2.Document
End If
Wend

Set ventry1=ventry2
If ventry1 Is Nothing Then
Set doc=Nothing
Else
Set doc=ventry1.Document
End If
Wend








  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

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 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 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
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow