March 01, 2006, 06:19 AM
Anubha SainiCHAIN LINKING BOTH WAYS
Can we chain link controls bothways like I linked 3 dropdowns called (1)Region, (2)Division, (3)Subdivision. If region is selected then division and subdivision are populated automatically. If I select (2)Division first, then can I get (1)Region dropdown automatically filled with regions which contains selected division.
Can anyone help
March 01, 2006, 10:08 AM
Tony AThe IB supplied javascript module that completes the dynamic HTML chaining is ibirls.js but only supports uni-directional chaining.
If you want bi-directional the you will have to resort to coding the javascript yourself. Although you can use the ibirls.js as a base I would not suggest that you change it as any future upgrade will obliterate your work and you will understand the very good reason for taking back-ups!
T
March 01, 2006, 11:02 AM
<JG>What you are asking to be able to do is totally illogical.
You cannot make a selection from box 2 unless it has been populated by a selection from box 1.
Think about it.
September 29, 2007, 05:04 PM
<Michael Goshey>JG: I don't find this request to be illogical at all- quite the contrary. It fairly commmon to offer "All" as the uppermost (and default) choice in web-based list controls. In such a situation, even chained controls would begin life fully populated. I beleive Anubha was seeking a way to start the filtering process from any arbitrary control in the parent-child chain. I'd use this myself if it were built-in. An interesting application might be a two list version (state and city). Bidirectional chaining would allow a user to select "Springfield" in the city list, thereby filtering the state list to display all states with a "Springfield." Further research might center around the name Simpson...
September 30, 2007, 12:04 AM
susannahAbsolutely. I completely agree with Michael, which is why we don't use javascript arrays ("chaining").. we want users to be able to decide what they want to do without being forced to follow a dictate, especially when elements from GroupB could belong to more than 1 element in GroupA...