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:
RE: LScript: Delete documents using a Terminations List ~Arnold Dwonumanakoi 27.Oct.03 07:10 PM a Web browser Applications Development 6.0.2 CF2Windows XP
Hi Ed
Without seeing the rest of your code I'm not sure why docs are being deleted from the wrong view ... I notice once the loop is over, you'll have an extra 'OR' hanging at the end of all the all the doctors' names whioch may or may not affect things ... but here is a simple modification which forces deletions from the correct view:
set DeltionsViiew to point to the view thaat contians Mediflex docs.
Modify your loop as follows
While Not (doc Is Nothing)
'grab & delete one doc at a time
a= doc.FirstName(0) & " " & doc.LastName(0)
'look up the DeletionsView for the document with the key in a and delete it.
Set doc = view.GetNextDocument(doc)
Wend