Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, November 27, 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: Populate combobox w/ Contact Group list, parse sql from data column of selected group
Corey Harbaugh
Posts: 31
 
Populate combobox w/ Contact Group list, parse sql from data column of selected groupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jan 07 9:17 AM
fiogf49gjkf0d
I'm creating a report form to make things easier for my users. I would like to have the same functionality as the Report Section when you use the Contact Filters by group. I need to first populate a combobox with the current logged in users contact group plugins that they either own or have access to. Second, when the user has selected the group, parse the sql statement from the data column in the plugin table. I can reveal the data column but there are several other parameters that need cleaned out.

Any ideas would be great! Thanks.
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Populate combobox w/ Contact Group list, parse sql from data column of selected groupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jan 07 11:46 AM
fiogf49gjkf0d
Here is some sql that will return the group plugins that the user has access to (just replace ADMIN with the appropriate userid):

SELECT
P.PluginID , P.Type , P.Family , P.Name, P.UserID, P.Dev, P.Released, P.Basedon
FROM
Plugin P
INNER JOIN SECRIGHTS S_AA ON (S_AA.ACCESSID = 'ADMIN' AND P.USERID = S_AA.SECCODEID )
WHERE
P.Type = 8
AND (
(P.UserID = 'ADMIN' AND P.Dev = 'T')
OR
(P.UserID <> 'ADMIN')
)
ORDER BY
P.Dev Desc, P.Type , P.Family , P.Name


You will also want to add a filter on the Plugin.Family if you only want Contact groups. Once the user selects the group you can use the pluginid to get the sql via the Application.BasicFunctions.GetGroupSQL(GroupID) function.
Hope that helps!

Timmus
[Reply][Quote]
Corey Harbaugh
Posts: 31
 
Re: Populate combobox w/ Contact Group list, parse sql from data column of selected groupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jan 07 12:19 PM
fiogf49gjkf0d
This place has it all....Thanks Timmus
[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/27/2024 2:34:00 AM