2015-11-24 17 views

回答

0

獲得從oContext你的表的SPATH ...

例如:

oTable.bindAggregation("items", { 
      path: "/",  //json is an array of rows 
      factory: function(sId, oContext) { //this function is applied to each row 

       var sPathindex = oContext.getPath(); 
       var index = parseInt(sPathindex.substring(1))+1; 

       var serialNo = new sap.m.Text({text: index }); 
      } 
      return colListItem = new sap.m.ColumnListItem({ 
        cells:[serialNo ] 
      }); 
    } 

希望這將幫助你解決你的問題

+0

謝謝..它的工作 –

相關問題