on 11-13-2005 6:11 PM
Hi ,
I have two dropdowns say "Country" and "state".
Based on the selection in the dropdown "Country" my contents of "state" dropdown should change?
Can anyone help me out ASAP with solution as to how dynamically we can populate dropdowns based on previous dropdown selections?
Immediate help is greatly required and appreciated.
Hi Deepa,
this depends a bit under what circumstances you want to achieve this behaviour?!
(a) Your are developing your own application, placing the two dropdowns on the screen. Then I don't know really understand the problem - on the first dropdown you can react (it's your decision if on client or on server side) on a changing value, and fill the second dropdown box with values corresponding to the value chosen in the first one. On client side, this may be a bit more tricky for you would have to put the JavaScript into the page, accessing the dropdown values; if this is your question search for "javascript htmlb" on SDN to get different hints for that scenario. If you react on server side, there is absolutely nothing special, just filling the model of the second dropdown with the appropriate values in an onFirstDropdownSelection method.
(b) If you have defined custom predefined properties, which you want to declare as depedendent, see this HowTo guide: http://service.sap.com/nw04 - How-to Guides - Portal, KM & Collaboration - KM - Configuring Predefined Properties with Dependent Values
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.