Saturday, 15 May 2010

sapui5 - Table columns name does not update on model change -



sapui5 - Table columns name does not update on model change -

i create table:

otable.setmodel(new sap.ui.model.json.jsonmodel(odata)); otable.bindaggregation("items", "/items", new sap.m.columnlistitem({ cells: odata.cols.map(function (colname) { homecoming new sap.m.label({ text: "{" + colname + "}" }); }) }));

then want alter model (it contain rows , cols):

otable.setmodel(new sap.ui.model.json.jsonmodel(newodata)); model =otable.getmodel(); model.refresh();

but after refresh see new data(:d) old cols name!

try binding cells of columnlistitem "/cols"

sapui5 sapui

No comments:

Post a Comment