Below is snippet of my List with input value. I am successuflly able to display my items on the list. But unlike the example Demo, I can't seem to get the input field with the proper value displaying.
Basically, teh SAP Demo app page example shows a list item with it's descriptiong and at the right side of the list item is basically a value that the user can override. I get all the display on the list except the quantity part that I'd like to be able to edit.
var itemTemplate = new sap.m.StandardListItem({
title : '{MaterialDesc}', //Physinventory
type: "Navigation",
description: '{Material}',
customData: new sap.ui.core.CustomData({
key: "id",
value: "{EntryQnt}"
})
});
var oitemList = new sap.m.List("oitemlist",{
items: [
new sap.m.InputListItem({
label: 'Quantity',
content: new sap.m.Input({
placeholder: "Qnt",
value: "{EntryQnt}",
type: sap.m.InputType.Number
})
})
]
});
/*sap.ui.getCore().getElementById("materialnum").setValue(response.Materialnumber);
sap.ui.getCore().getElementById("materialdes").setValue(response.MaterialDesc);
sap.ui.getCore().getElementById("materialtype").setValue(response.MaterialType);
sap.ui.getCore().getElementById("materialgrp").setValue(response.MaterialGroup);*/
var fiscalYearFilter = new sap.ui.model.Filter("IFiscalyear", sap.ui.model.FilterOperator.EQ, new Date().getFullYear());
var matnumFilter = new sap.ui.model.Filter("IPhysinventory", sap.ui.model.FilterOperator.EQ, materialmovement.physInventory);
oitemList.bindAggregation("items", {
path: "/PhysicalInventoryItemListDetailsSet",
template: itemTemplate,
filters: [ fiscalYearFilter, matnumFilter ]
});