Hello Experts,
I'm trying to get the description of my selecteditem into a variable.
I want to use this variable in my OData.read in order to specify a certain promotion.
But i'm failing to get the description from the selecteditem...
var oListStandard1 = new sap.m.List({
inset : false
});
var oItemTemplate1 = new sap.m.StandardListItem({
type : sap.m.ListType.Navigation,
title : "{Materialgroup}",
description : "{ID}",
press : function(){
console.log(oListStandard1.getSelectedItem);
var id = oListStandard1.getSelectedItem.description;
OData.read("http://ws8flex71.sap.flexso.com:8000/sap/opu/odata/sap/YXM_GWS_BART_SRV/promotions('" + id + "')"
,
function(response) { ...
...
I'ts probably an obvious mistake but i'm not seeing it right now.
Is this even the way to do it ?
Kind Regards,
Bart