Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, August 23, 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: Generate cities form country
Enjy
Posts: 23
 
Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 May 08 5:57 AM
Dear All

When I choose country from Picklist or combobox, it generate its cites in city picklist or combobox.

How can I do this?
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 May 08 6:12 PM
Sounds like you want to implement a hierarchical picklist. It's not as easy as it could be, but have a look at the code behind Account Type and SubType on the Account Detail form. The subtype picklist depends on the Account Type selected - so you could use the same technique.

Phil
[Reply][Quote]
Enjy
Posts: 23
 
Re: Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Jun 08 3:04 AM
Thank you
But I need to do it for "Countries" and thier "Cities"
If I use the same technique, I have a lot of countries so it will be diffecult to do this for all countries.

What I think for is to set a table contains Countries and other for thier Cities and relate the two tables to each other and then generate a code for this, so I want you to help me in this code.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Jun 08 4:49 AM
What you are talking about is completely feasible - and even a good idea. But it's quite a lot of work to implement.

On the database side - pretty straightforward - two tables as you suggest.

But then you need to build a maintenance facility (so that administrators can add/edit/delete entries). Then you need to decide what happens to the underlying data if the picklist entries are edited or deleted - and code it.

After that, you need to build the selection logic into your combos - picklists will not work in this scenario.

It's quite a big topic - you will have to be more specific with your questions, as just asking for help is a bit too general.

Phil

[Reply][Quote]
Enjy
Posts: 23
 
Re: Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Jun 08 5:12 AM
Thank you

On database side - It is ok, I'll create the two tables and manage them
On Code side I need your help in coding combos. because I'm not professional in saleslogix coding.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Jun 08 5:31 AM
OK, go ahead and build/populate the tables.

You will also have to add the appropriate fields to the tables in which you want to store the data.

Then I can help you with the code to populate the country combo. We'll take it from there.
[Reply][Quote]
Enjy
Posts: 23
 
Re: Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Jun 08 6:26 AM
Okay I add the tables and add fiew data
I'm waiting for code.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jun 08 11:17 AM
Quote:
Originally posted by Enjy

Okay I add the tables and add fiew data
I'm waiting for code.


Hi Enjy,

I wouldn't wait too long for the code , this is a forum of people trying to help each other, but we all have jobs. You can always expect good help from these forums, but you shouldn't expect the forums to provide everything for you. We'll get you started, but doing the job is up to you (or another business partner you'll hire to do the work for you). If you're not capable of actually writing the code, you'll probably not get too far here and will want to look into

1) Training
2) Outsourcing to another business partner

Not trying to discourage you or anything, we're all here to help, just not to do the job for you

Good luck.

-Ryan
[Reply][Quote]
Enjy
Posts: 23
 
Re: Generate cities form countryYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jun 08 2:45 PM
Thank you ryan

I'm .net developer and I know that these forums is for trying to help, I accept this, in other forums I help by code who cann't write code, and I'm aslo busy, but this does not prevent me to help any one.

Thank you any way for your support.
[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/23/2025 10:41:14 PM