11/26/2024 6:21:29 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
CMD Button to Add Contact To A Group
Posted: 22 Sep 06 4:45 PM
|
fiogf49gjkf0d Hi,
Does anyone know of a way I can add a contact to a group without having to be in list view. Ideally, a cmd button would be perfect but I am not picky except that I want to be able to fire it from the contact detail page.
Thank you very much in advance.
Paul We are still on 6.23 |
|
|
|
Re: CMD Button to Add Contact To A Group
Posted: 22 Sep 06 5:56 PM
|
fiogf49gjkf0d First of all.. If you come from a Goldmine background you need to throw away your concepts about groups and how they work.. it's different (and better as far as I'm concerned.. having worked w/both) In SalesLogix there are two different kinds of groups: A - Dynamic groups - These groups are built by constructing a query using teh query builder (or Advanced Lookup "feature"). You don't "add" contacts to these types of groups.. you change data in teh contact record that meets teh query requirements of the group you want that contact to show up in.
B - Static Groups.. these are just groups of contacts that have no real (database) relationship.. they are static. Internally, it's just a list of contact id's.
Based on your question I'm assuming that you are talking about "B" - Static groups.
All you need to do is locate the GroupID in question and add your contactID to it.
Here's the magic SQL Insert statement: Insert into ADHOCGROUP (GROUPID, ENTITYID) VALUES ('" & vGroupID & "','" & vEntityID & "')"
vGroupID is the ID of the group in question vEntityID is the ContactID in question
-- rjl |
|
|
|
Re: CMD Button to Add Contact To A Group
Posted: 23 Sep 06 9:31 AM
|
fiogf49gjkf0d Hi,
Goldmine... Yuk.. Actually I come from a ACT background.. Though it has been purely Saleslogix since V5 Shipped.
I was talking about the Ad-Hoc groups. I don't really want to hard code a group id in the control, I really like the right click - pick an existing group - the way SLX has it from a List View and I was hopping someone knew of a way I could invoke this menu. From your response, I think I will make a picklist for the group, so you just select the group and you are on your way.
Thanks for setting me on the proper path.
Paul |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|