-
Topic
-
Hi,
I’m hoping you can help me debug this problem I’m stuck on or perhaps suggest an alternative solution.
I’m trying figure out a way to loop through all recipients of a Groupwise Appointment (in an applet executed on the composing item just before OnSend) in order to verify if the user has ‘invited’ more than one meeting room (resource) and then popup a warning message.
Initially, I was looking for a way to loop through all recipients and determine if the account is of type resource rather than a user. But I’ve not found any property than can tell me this.
As a workaround, I go get a list of all room names from a database and put it in an array, then loop through all recipients and compare if the name is on my list of rooms. This works ok, but I’ve hit a bump in my testing. When sending an appointment booking to a large group of people (it’s not unusual to invite 200+ people to some presentations), the Groupwise.ItemGetText function always truncates the list at roughly 104-109 names (not always the same number, or roughly 2015 characters in string length), with the last name in the list ending with an ellipsis (…)
Why does it truncate there and how can I see the remainder of the list items?
[We are running Groupwise 7.0.3 with Formativ 2.0]Simplified code excerpt:
strRecipients = GroupWise.ItemGetText(“X00”, itfTo)
arrRecipients = Split(strRecipients, “;”, -1, 1)For each recipient in arrRecipients
For each room in arrAllRoomsFromDB
If Trim(recipient = Trim(room) Then
intCountRooms = intCountRooms + 1
End If
Next
Next
If I do a MsgBox(UBound(arrRecipients)), even though I have 200+ recipients, it pops up a name from the middle of the list with an ellipsis (eg. Fred Flintstone(…))
Is there a better way to go about this? It is a fairly slow process (about 12 seconds to loop through the 100 or so users in the [truncated] list, would be twice as long otherwise), but I’ve not found any other way. Any suggestions would be appreciated.
- You must be logged in to reply to this topic.