Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

sap.m.List & getSelectedContexts() ??!

$
0
0

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


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>