Login / Register  search  syndication  about

          Jason Buss' Blog

Jason Buss on SalesLogix development & customization, SQL, and more.

Using Picklist data revisited

Back in January, I posted about the SalesLogix picklist data structure, and outlined how to use the data found in the picklist table to populate other controls such as comboboxes and listboxes.  You can find that article here.)  If you are performing customizations to version 7.2 or later of SalesLogx, this processes can be greatly simplified by using Application.Picklist instead of directly querying the database.

By using Application.Picklist, you no longer need to understand how SalesLogix stores picklist data.  This also serves to clean up your code, since you don't have to look at the picklist table.

As an example, here is code populating a ListBox control with the values from the "Contact Type" picklist.

Dim x

Set objList = Application.PickLists.Item("Contact Type")
ListBox1.Items.Clear
For x = 0 To objList.Count - 1
      ListBox1.Items.Add(objList.Item(x))
Next
Set objList = Nothing

 

That's all there is to it.  Much simpler than looking at the picklist data directly via a query.  Remember though, Application.picklists is ONLY available on implementations of SalesLogix version 7.2 or greater.

Thanks for reading! Smile

What's This?
  
Bookmark and Share

About Jason Buss

   Jason is a senior application developer with Customer FX.



Related Content
   Using a Test Plan
So you have approved the Statement of Work (SOW) for some modifications and are awaiting the delivery of
Posted on Mar 13, 2014 by George Jensen to George Jensen's Blog
 
   Setting the Defaults on the Insert Account/Contact Duplicate Record View
When creating a new Account/Contact record in Saleslogix web, you have the ability to check for duplicat
Posted on Mar 10, 2014 by Jason Buss to Jason Buss' Blog
 
   Creating a Saleslogix Ticket Pretty Prefix and Suffix in External Applications
Some entities in SalesLogix, such as Tickets, use a "pretty key" as an easier to use value to r
Posted on Feb 28, 2014 by Ryan Farley to Ryan Farley's Blog
 
   Adding string formatting to values using WebEntityBinding
In a recent project, I needed to round numeric values displayed in the Opportunity Snapshot.  This
Posted on Feb 05, 2014 by Jason Buss to Jason Buss' Blog
 
   Error: StringConverter cannot convert 'String' to 'Boolean'
This error usually occurs because an entity property is set as the wrong datatype for it's underlying
Posted on Jan 03, 2014 by Jason Buss to Jason Buss' Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register