02-26-2010 03:41 PM
Hello. We have a custom search screen and need to be able to create a group for the current user by passing in the conditions of the current search on a form. Any ideas how this can be accomplished?
Thanks in advance.
03-03-2010 05:02 AM
Hope this helps, I used this code to create an ad-hoc group from a string of comma separated contact Ids which I had collected through another bit of code.
Sage.SalesLogix.Client.GroupBuilder.GroupInfo.CreateAdHocGroup(Ids, "Contact", groupName);
Ids = string of Contact Ids
groupName = string, what you want to call your group
03-03-2010 07:47 AM
Thanks Jason. I need to store the conditions though,not the values because this group has to dynamically display any new records that match the criteria. With the CreateAdHocGroup method i believe it will only store the current list of IDs and will be a static group.
Is there a way to pass the (SQL) conditions to the group builder via the group builder ?
03-03-2010 08:42 AM
Allen, dev was kind enough to offer this suggestion....
03-03-2010 09:40 AM
Thanks Gene! I appreciate the info from dev.
Would you be able to point me to which file contains the group builder code that is being referred to ? I am not sure where to look.