on 10-26-2006 7:52 AM
Hi,
I must be able to select multiple items from a combo box. What are the properties that i have to change in NWDS. Jus guide me to get this functionality done.
I hope you are working with webdynpro... then my solution wont work out..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Default selection mode of dropdownlistbox(Combobox) is Single Selection.To change it to MultiSelection ,You have assign a model to the dropdownlistbox.
<hbj:dropdownListBox id="Combobox"
model ="bean.model"
...... >
//bean class
public ListModelBean extends {
public com.sapportals.htmlb.DefaultListModel model;
public void setModel(DefaultListModel model) {
this.model = model;
}
}
in your business class after creating bean class instance
DefaultListModel model = new DefaultListModel();
model.addItem(..);// add the combobox items
model.setSingleSelection(false); //
ListModelBean.setModel(model);
can get the selected items by
String selectedItems[] = model.getMultiSelection();
Link URL for DefaultListModel
https://media.sdn.sap.com/javadocs/NW04/SPS15/hb/com/sapportals/htmlb/DefaultListModel.html
Regards
Ganesan S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.