Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 2025 
 
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: Where in the DB does it define the PICKLISTID?
Aaron Lowe
Posts: 37
 
Where in the DB does it define the PICKLISTID?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 09 10:56 AM
I see that the PICKLIST table has all the items for the picklists. I also see that there is a PICKLISTID that says what items go with that picklist. But how do I find out what PICKLISTID matches up with (for example) the Contact Status picklist?

And I need to do this programmatically.

I'm used to some sort of support table that would have a primary key of PICKLISTID and a description column that would say the name of the picklist.

Or maybe there is some table that has the table and field and associated picklistid......?

Previously I just selected all the picklist info where the text = the text I knew was in my picklist. Then I went into the picklist manager and changed one. Then I looked to see which one changed in the database and figured that was the picklistid I needed. I can't do that with this new program, because it dynamically changes where it gets its options based on the field.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Where in the DB does it define the PICKLISTID?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 09 11:22 AM
This is how you get all the Picklist Items for a Given Picklist (Using Contact Status as example):

SELECT * FROM PICKLIST WHERE PICKLISTID IN
(
SELECT ITEMID FROM PICKLIST WHERE PICKLISTID = 'PICKLISTLIST' AND TEXT = 'Contact Status'
)
[Reply][Quote]
Aaron Lowe
Posts: 37
 
Re: Where in the DB does it define the PICKLISTID?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 09 11:24 AM
Excellent. Thank you.

So to get my activity types, I'm using

SELECT TEXT,ID
FROM PICKLIST
WHERE PICKLISTID = (SELECT ITEMID
FROM PICKLIST
WHERE PICKLISTID = 'PICKLISTLIST'
AND TEXT = 'Activity Types')


Quote:
Originally posted by Raul A. Chavez

This is how you get all the Picklist Items for a Given Picklist (Using Contact Status as example):

SELECT * FROM PICKLIST WHERE PICKLISTID IN
(
SELECT ITEMID FROM PICKLIST WHERE PICKLISTID = 'PICKLISTLIST' AND TEXT = 'Contact Status'
)
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Where in the DB does it define the PICKLISTID?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Jul 09 3:20 AM
If you are using 7.2+ then use Application.Picklists - shouldn't be any need to code/examine the table directly.

Set objItems = Application.PickLists.Item("yourpicklistname") 'DNL
cmbAutoText.Items.Clear
For i = 0 To objItems.Count - 1
cmbAutoText.Items.Add(objItems.Item(i))
Next
Set objItems = Nothing

This puts the item into a combo box (for example)
[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 © 2025 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): 8/29/2025 11:57:50 AM