Question: In SalesLogix I need to select multiple contacts on the contact list
view and then use the contact ID’s in subsequent code in a form opened
from the right-click menu of the list view. How can I get the ID’s of
the selected contacts?
Answer: Use this:
Sub AddMergeIDs
Dim strMergeIDs
strMergeIDs = empty
Dim i
i = 0
for i=0 to application.MainViews.
strMergeIDs = strMergeIDs & application.MainViews.
next
strMergeIDs = left(strMergeIDs, len(strMergeIDs)-1)
application.GlobalInfo.Add “MergeIDs”, strMergeIDs
End Sub



