Guest_imported
New member
- Jan 1, 1970
- 0
Does any one how to delete an item from a list using a LotusScript. The script below does the job but it dosent refresh the view. I have to phyically go into the document and save it. I cant really do that as the db contains around 4000 document.
GetEmail = doc2.InfoSentTo(0)
Eval$ = "@trim(@ReplaceSubstring(InfoSentTo; " & """" & GetEmail & """; " & """""" & ")"
result = Evaluate(Eval$, doc2)
Forall v In result
i = i + v + " ;"
End Forall
Set item = doc2.replaceitemvalue("InfoSentTo", Trim(Cstr(i)))
Call doc2.save(True, True)
Call ShowEmail.Refresh
GetEmail = doc2.InfoSentTo(0)
Eval$ = "@trim(@ReplaceSubstring(InfoSentTo; " & """" & GetEmail & """; " & """""" & ")"
result = Evaluate(Eval$, doc2)
Forall v In result
i = i + v + " ;"
End Forall
Set item = doc2.replaceitemvalue("InfoSentTo", Trim(Cstr(i)))
Call doc2.save(True, True)
Call ShowEmail.Refresh