Skip to main content
This forum is closed to new posts and responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Delores Bregeroplopetsi 27.Oct.03 06:00 PM a Web browser
Applications Development 6.0.2 CF2 Windows XP


Hi,

I have a database, with 2000 documents in a view based on one form - Mediflex. I have another view, called Terminations based on a form called originally, Terminations. This terminations view- has doctor names on it, and is the key to deleting information from the Mediflex view.

So if Doctor Edward Russell is listed in the Terminations view, he needs to be deleted in the MediFlex view.

I thought maybe the best way to do this, using script would be to use the Terminations documents as a KEY - in a FTIndex Search, and then delete. Here is my code:

'scan through terminations, and build a key
While Not (doc Is Nothing)
a=a + doc.FirstName(0) & " " & doc.LastName(0) & " OR "
Set doc = view.GetNextDocument(doc)
Wend

'create a documentcollection and search for the keyed documents and delete
Set dc = db.FTSearch(a, 4000)
Call dc.removeall(True)

This is all great, but I end up deleting them from the Terminations view (which is ok)- but nothing from the mediflex view. What am I doing wrong? Should I do this another way? Any help would be appreciated!

Thanks.






LScript: Delete documents using a T... (~Delores Breger... 27.Oct.03)
. . RE: LScript: Delete documents using... (~Manny Kiboosis... 28.Oct.03)
. . RE: LScript: Delete documents using... (~Delores Breger... 28.Oct.03)
. . . . RE: LScript: Delete documents using... (~Bill Frokimari... 28.Oct.03)
. . . . . . RE: LScript: Delete documents using... (~Delores Breger... 29.Oct.03)
. . RE: LScript: Delete documents using... (~Arnold Dwonuma... 27.Oct.03)
. . . . RE: LScript: Delete documents using... (~Bill Frokimari... 28.Oct.03)





  Document options
Print this pagePrint this page

 Search this forum

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

 RSS feedsRSS
All forum posts RSS
All main topics RSS