Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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!
 Architect Forums - SalesLogix Scripting & Customization
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: CMD Button to Add Contact To A Group
Paul Pacun
Posts: 48
 
CMD Button to Add Contact To A GroupYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: CMD Button to Add Contact To A GroupYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Paul Pacun
Posts: 48
 
Re: CMD Button to Add Contact To A GroupYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/26/2024 4:32:03 PM