Subject: RE: How to remove an item from the list ?
Hi Kenneth …I am sorry for not mentioning it is for LS or @Formula…
it is for LS solution …
Thanks alot for the quick response …
Please have a look at the code that i wrote …
Dim session As New NotesSession
Dim col As NotesDocumentCollection
Dim doc As NotesDocument
Dim test As String
Dim db As NotesDatabase
Dim mailDoc As NotesDocument
Dim rtItem As NotesRichTextItem
Dim amexDoc As NotesDocument
Dim AmexView As NotesView
Dim originalDoc As notesdocument
Dim rtpStyle As NotesRichTextParagraphStyle
Dim viewRegNoLookup As NotesView
Dim viewRegNoTA As NotesView
Dim requestCol As NotesDocumentCollection
Dim doc1 As NotesDocument
Dim RegNoDoc As NotesDocument
Dim i,j,m,x As Integer
Dim TravelAssistant As NotesName
Dim blankArray(0) As String
Dim historyArray As Variant
blankArray(0) = ""
historyArray = blankArray
Set db = session.CurrentDatabase
Set col = session.CurrentDatabase.UnprocessedDocuments
Set doc = col.GetFirstDocument
Set TravelAssistant = New NotesName( doc.GetItemValue( FLD_PROFILE_PROFILEUSER )(0) )
Set viewRegNoLookup = session.CurrentDatabase.GetView(VIEW_LOOKUP_CUSTOMERNOBY_TA)
Set requestCol = viewRegNoLookup.GetAllDocumentsByKey( TravelAssistant.Abbreviated, True )
Set doc1 = requestCol.GetFirstDocument
Msgbox requestCol.Count
historyArray = doc1.GetItemValue (FLD_CUSTOMERNO_TRAVELASSISTANT)
Msgbox Ubound(historyArray),“historyArray”
While Not doc1 Is Nothing
For i=0 To 0
historyArray = doc1.GetItemValue (FLD_CUSTOMERNO_TRAVELASSISTANT)
Msgbox i,“i”
Forall k In historyArray
If ( k =TravelAssistant.Abbreviated) Then
Msgbox "Present"
(Actually here i have to remove the item if k =TravelAssistant.Abbreviated, but i am not able to acheive it)
End If
End Forall
Next
Please tell me where i am doing wrong