on 02-21-2014 1:55 PM
Hi,
I have list:
var list = new sap.m.List("actlistDlg",{
mode: sap.m.ListMode.MultiSelect,
includeItemInSelection: true,
width:"280px",
/*items: {
path: "/ProductCollection",
template: new sap.m.StandardListItem({
title: "{NAME1}",
description: "{NAME2}",
})
}
*/
});
var temp = new sap.m.StandardListItem("actlistDlgTemplate", {
title: "{CHILD_TO_PARTNER/LASTNAME}",
description: "{CHILD_TO_PARTNER/FIRSTNAME}",
customData: [
new sap.ui.core.CustomData({
key: "path",
value: "x"
}),
],
});
list.bindItems(/", temp);
After I opened a dialog, I want ot get the selected context from the lts.
I use list.getSelectedContexts(true)
I allways get an error, that the object list does not have such a method....
Is there any example, how I can get selected values from muli-list?
jens
Hi,
You have to use the method getSelectedItems().It returns array containing the selected list items.
var selected=[];
selected=list.getSelectedItems();
Regards,
Jeffin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will need to use the method below, from the item then you can get the context
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.