Login / Register  search  syndication  about

          SalesLogix Questions & Answers

Your place to get answers to your SalesLogix related questions.

 Home  |   Subscribe via RSS  |   Subscribe via E-mail  |   

Running Query SalesLogix and Displaying Results in the cboProductType

Question: In SalesLogix I am trying to run a query, and after the query is executed I would like the results to be displayed in the field cboProductType.  I applied the following code to my form but it's not working:

Sub cboProductTypeChange(Sender)

dim oCon
dim oRS
dim strSQL
Set oCon = Application.GetNewConnection
strSQL = "SELECT DISTINCT(ORDER_FAMILY) FROM BIP_ORDER_HEADERS WHERE ORDER_FAMILY IS NOT NULL"

While Not oRS.EOF
cboProductType.Items.Add(oRs.Fields("ORDER_FAMILY").Value)
oRS.MoveNext
WEnd
End Sub
 
What am I missing?
 
Answer: After you set strSQL you need to populate your result set:
 
Set oRS = oCon.Execute(strSQL)

When you are finished with your objects be sure to close and dispose of them.  If a sub is repeatedly called the cbo items append over and over, so consider adding this as well: cboProductType.Items.Clear
What's This?
  
Bookmark and Share

About SalesLogix Support

   Your SalesLogix Business Partner for SalesLogix Support.


Related Content
   Problem with the Clean Build Folders option in Application Architect
On occasion, it becomes necessary to clean out the build folders and deployed website prior to a build/de
Posted on Sep 16, 2014 by Jason Buss to Jason Buss' Blog
 
   ComboFix Kills Saleslogix Sync
ComboFix, a third party malware utility, will alter the Operating system so .qts and .que files will no l
Posted on Sep 12, 2014 by Brianna Ojard to SalesLogix Support
 
   Restricting Adding Opportunity Contacts to Contacts at the Opportunity's Account
 One thing that clients have asked for is how to restrict the selection of the Opportunity Contacts
Posted on Sep 09, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   How do I access the new Opportunity that I created in Saleslogix??
I had a user ask why they could not access a Salelogix opportunity when they clicked the hyperlink from t
Posted on Sep 04, 2014 by Dale Richter to SalesLogix Questions & Answers
 
   Retrieving Items from a Picklist via Javascript
Saleslogix is very light on how to use client side processes to do things in the Saleslogix web client.&n
Posted on Aug 29, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

No Comments
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