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: populate combo box
David Ogles
Posts: 51
 
populate combo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jul 06 7:49 AM
fiogf49gjkf0d
Is it possible to populate a combo box at the time of clicking on the CB control. For example, have a table that contains sales codes that are tied back to the userid field in userinfo. When you click on the CB, we want to look at the lueacctmgr.lookupid on the account detail screen and pull back those values that match that user id.

Thanks,
David Ogles
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: populate combo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jul 06 8:09 AM
fiogf49gjkf0d
You should be able to do what you want by attaching a script to the WhenChange of WhenClick event of the CB control.
[Reply][Quote]
David Ogles
Posts: 51
 
Re: populate combo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jul 06 8:43 AM
fiogf49gjkf0d
But how would you do that? I'm a little "green" when it comes to that level of VB.

Thanks
[Reply][Quote]
Frank Chaffin
Posts: 475
 
Re: populate combo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jul 06 9:11 AM
fiogf49gjkf0d
You will need to use the SalesLogix Architect to modify the form that contains the CB that you are intereset in. It is hard to be more specific without knowing even what screen you are trying to modify.

Have you had any training in SalesLogix development or read any of the documentation?
[Reply][Quote]
David Ogles
Posts: 51
 
Re: populate combo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jul 06 9:28 AM
fiogf49gjkf0d
Sure have but really rusty. Anyways, figured it out. Here is the code:

dim strsql, objSC, objSLXDB
Set objSLXDB = New SLX_DB
Set objSC = objSLXDB.GetNewRecordSet
strsql = "Select Salescode from Salespeople where userid = '" & lueacctmgr.text & "'"
objSC.open strSQL, objSLXdb.connection
combobox1.Items.clear

With objSC
If Not (.BOF And .EOF) Then
.MoveFirst
For I = 0 To .RecordCount - 1
combobox1.Items.add(objSC.Fields("Salescode").Value)
.MoveNext
Next
End If
End With

objSC.Close
Set objSC = Nothing
[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 7:48:33 AM