Hi,
I find the solution.
could I write like this:
var deleteButton = new sap.ui.commons.Button({
text:"delete",
press: function(oControlEvent){
var currentcontent = oControlEvent.getSource().getParent().getBindingContext();
this.deleteRow(currentcontent.getObject());
}
});
this.oTable = new sap.ui.table.Table({
minAutoRowCount:5,
visibleRowCountMode:sap.ui.table.VisibleRowCountMode.Auto,
id:"oTable",
columns:[
new sap.ui.table.Column({
label:new sap.ui.commons.Label({text:""}),
template: deleteButton})]
});