NEVER MIND I just found my answer, I was making it more complicated than it had to be. . . .
. . . Is there LotusScript, JavaScript, or Formula language that can compare 2 multi-value fields and determine which values in mutli-value field 1 are not in multi-value field 2?
So Fld 1 contains 1,2,3,4 and Fld 2 contains 1,3
Can I have code in a third fld that computes to just those values missing from Fld 2?
Subject: RE: (NEVER MIND, I Have the answer) This probably asking a lot from Lotus Notes but . . .
Here is my code. . .
I have a large # of “Notify” fields that can contain multiple user names. I need to determine who out of all my Notify fields has not opened the document and approved/rejected the proposal. Every 5 days an agent runs to send an email to those people who have not approved/rejected the proposal.
This code looks at all my Notify fields and fills “Who_Is_Left” with everyone who has yet to approve/reject the proposal.
So in the QuerySave of the form I have this code:
Set Item = doc.GetFirstItem(“RFI_Signer”)
Set Item3 = doc.GetFirstItem(“Who_Is_Left”)
Call doc.ReplaceItemValue(“Who_Is_Left” , “”)
Forall value In Doc.Notify_EE
If Item.Contains(value) = False Then
Call Item3.AppendToTextList(value)
End If
'Check all other Notify fields with the ForAll loop like above
.
.
.
Call doc.ReplaceItemValue(“Who_Is_Left” , Item3)
Call doc.Save(True,True)
It may not be the cleanest or prettiest, but it works for what I need it to do.