Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, June 25, 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!
 Web Forums - SalesLogix Web Client (Pre-7.2)
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Client (Pre-7.2) | New ThreadView:  Search:  
 Author  Thread: Cascading Picklist
Rekha
Posts: 5
 
Cascading PicklistYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Oct 06 9:30 AM
fiogf49gjkf0d
I want to create cascading picklists ( That is depending on the selected value in Picklist1 the Picklist2 should populate ) in webclient . Can anyone suggest me how can it be done.
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Cascading PicklistYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Oct 06 10:52 AM
fiogf49gjkf0d
Rekha,

A couple of approaches you can take. Others may have some other approaches that will work, too.

First, you could use a #INCLUDE statment that outputs XML that contains all the potential values you need to populate picklist 2 when picklist 1 changes. In JavaScript clear picklist 2 and then use the XML to repopulate picklist with the appropriate values.

The second approach is a slight variation on the first. Use a #QUERY tag and the output=xml option to generate the potential values for picklist 2 and use JavaScript (as in the first idea) to populate picklist 2 when picklist 1 changes.

I've used both approaches with success. I like option 1 a little better as I can control the generated XML a little better.

Jeff
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Cascading PicklistYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Oct 06 6:50 AM
fiogf49gjkf0d
Hi,

Id be careful using the xml approach if the cascading picklist can have a lot of different values - we had a real depreciation in speed when a lot of new options were added (a few thousand). If you are working with lots of options (I mean in the hundreds at least) it might not be plausible to load the XML, or even use a javascript array generated using an included action. The way I got around the speed issue was to pop a modal dialog onchange of the combo and populate the next combo using this (autoclose the modal after populating the parent form). Make the modal size 0,0 and place it in a corner so the user doesnt notice unless they look too hard!!

That said if you have very fast servers the xml may work better for you than it did for me.

Thanks,

Nick
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Cascading PicklistYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Oct 06 9:33 AM
fiogf49gjkf0d
Probably the best approach is to use javascript and the xmlHTTP object to request the values for the necessary picklist when the value on Picklist 1 changed.

1) Build an Action to retreive the appropriate Values given a Picklist Name. This action would either return the raw list of values on XML or a string with the Options value.
2) From the OnChange event handler of Picklist one, call the Action passing the Picklist as a parameter. Depending on how you are returning the resultset on step 1, go ahead and apply the values to Picklist 2.

[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): 6/25/2024 9:57:00 PM