title: How do you get the row values when you press the delete button on table?
body: <p>I am using a responsive table (sap.m.Table) and I was wondering how do you get the row values in your controller when click the delete button on the table. I am trying to get the row values in the function onGaDelete and onGakDelete.</p>
  
  <p>This is my view code.</p>
  
  <pre><code>&lt;mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
      controllerName="ariba.so.kaaguidedassistance.controller.GuidedAssistance" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:f="sap.uxap"&gt;
      &lt;f:ObjectPageLayout id="ObjectPageLayout"&gt;
          &lt;f:headerTitle&gt;
              &lt;f:ObjectPageHeader objectTitle="{title&gt;/pageTitle}"&gt;
                  &lt;f:actions&gt;
                      &lt;f:ObjectPageHeaderActionButton text="save" hideIcon="true" hideText="false" press="onSubmit"/&gt;
                      &lt;f:ObjectPageHeaderActionButton text="edit" hideIcon="true" hideText="false" press="onEdit"/&gt;
                      &lt;f:ObjectPageHeaderActionButton text="cancel edit" hideIcon="true" hideText="false" press="onCancelEdit"/&gt;
                  &lt;/f:actions&gt;
              &lt;/f:ObjectPageHeader&gt;
          &lt;/f:headerTitle&gt;
          &lt;f:sections&gt;
              &lt;f:ObjectPageSection id="gaqaId" title="Guided Assistance Qa Flow"&gt;
                  &lt;f:subSections&gt;
                      &lt;f:ObjectPageSubSection id="gaqaSS" title=" "&gt;
                          &lt;f:blocks&gt;
                              &lt;Table id="gaTable" items="{path: 'garows&gt;/flow'}" mode="Delete" delete="onGaDelete"&gt;
                                  &lt;headerToolbar&gt;
                                      &lt;OverflowToolbar&gt;
                                          &lt;content&gt;
                                              &lt;Title text="Guided Assistance Qa" level="H2"/&gt;
                                          &lt;/content&gt;
                                      &lt;/OverflowToolbar&gt;
                                  &lt;/headerToolbar&gt;
                                  &lt;columns&gt;
                                      &lt;Column width="6em"&gt;
                                          &lt;Text text="ID"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="10em"&gt;
                                          &lt;Text text="value_long"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="8em"&gt;
                                          &lt;Text text="Type"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="8em"&gt;
                                          &lt;Text text="Action"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="8em"&gt;
                                          &lt;Text text="Button1"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="8em"&gt;
                                          &lt;Text text="Button2"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="8em"&gt;
                                          &lt;Text text="Button3"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="10em"&gt;
                                          &lt;Text text="Button4"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="8em"&gt;
                                          &lt;Text text="Button5"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="8em"&gt;
                                          &lt;Text text="Button6"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="3em"&gt;
                                          &lt;Text text="Active_Flag"/&gt;
                                      &lt;/Column&gt;
                                  &lt;/columns&gt;
                                  &lt;items&gt;
                                      &lt;ColumnListItem&gt;
                                          &lt;cells&gt;
                                              &lt;Text text="{garows&gt;ID}"/&gt;
                                              &lt;Text text="{garows&gt;value_long}"/&gt;
                                              &lt;Text text="{garows&gt;Type}"/&gt;
                                              &lt;Text text="{garows&gt;Action}"/&gt;
                                              &lt;Text text="{garows&gt;Button1}"/&gt;
                                              &lt;Text text="{garows&gt;Button2}"/&gt;
                                              &lt;Text text="{garows&gt;Button3}"/&gt;
                                              &lt;Text text="{garows&gt;Button4}"/&gt;
                                              &lt;Text text="{garows&gt;Button5}"/&gt;
                                              &lt;Text text="{garows&gt;Button6}"/&gt;
                                              &lt;Text text="{garows&gt;Active_Flag}"/&gt;
                                          &lt;/cells&gt;
                                      &lt;/ColumnListItem&gt;
                                  &lt;/items&gt;
                              &lt;/Table&gt;
                          &lt;/f:blocks&gt;
                      &lt;/f:ObjectPageSubSection&gt;
                  &lt;/f:subSections&gt;
              &lt;/f:ObjectPageSection&gt;
              &lt;f:ObjectPageSection id="gakqaId" title="Keywords"&gt;
                  &lt;f:subSections&gt;
                      &lt;f:ObjectPageSubSection id="gakqaSS" title=" "&gt;
                          &lt;f:blocks&gt;
                              &lt;Table id="gakTable" items="{path: 'gakrows&gt;/flow'}" mode="Delete" delete="onGakDelete"&gt;
                                  &lt;headerToolbar&gt;
                                      &lt;OverflowToolbar&gt;
                                          &lt;content&gt;
                                              &lt;Title text="Guided Assistance Keywords Qa" level="H2"/&gt;
                                          &lt;/content&gt;
                                      &lt;/OverflowToolbar&gt;
                                  &lt;/headerToolbar&gt;
                                  &lt;columns&gt;
                                      &lt;Column width="8em"&gt;
                                          &lt;Text text="Flow_ID"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="10em"&gt;
                                          &lt;Text text="Keywords"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="10em"&gt;
                                          &lt;Text text="Intersection1"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="10em"&gt;
                                          &lt;Text text="Intersection2"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="3em"&gt;
                                          &lt;Text text="Logic_Group"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="3em"&gt;
                                          &lt;Text text="Logic_Order"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="3em"&gt;
                                          &lt;Text text="Points"/&gt;
                                      &lt;/Column&gt;
                                      &lt;Column width="3em"&gt;
                                          &lt;Text text="ID"/&gt;
                                      &lt;/Column&gt;
                                  &lt;/columns&gt;
                                  &lt;items&gt;
                                      &lt;ColumnListItem&gt;
                                          &lt;cells&gt;
                                              &lt;Text text="{gakrows&gt;Flow_ID}"/&gt;
                                              &lt;Text text="{gakrows&gt;Keywords}"/&gt;
                                              &lt;Text text="{gakrows&gt;Intersection1}"/&gt;
                                              &lt;Text text="{gakrows&gt;Intersection2}"/&gt;
                                              &lt;Text text="{gakrows&gt;Logic_Group}"/&gt;
                                              &lt;Text text="{gakrows&gt;Logic_Order}"/&gt;
                                              &lt;Text text="{gakrPointsows&gt;Points}"/&gt;
                                              &lt;Text text="{gakrows&gt;ID}"/&gt;
                                          &lt;/cells&gt;
                                      &lt;/ColumnListItem&gt;
                                  &lt;/items&gt;
                              &lt;/Table&gt;
                          &lt;/f:blocks&gt;
                      &lt;/f:ObjectPageSubSection&gt;
                  &lt;/f:subSections&gt;
              &lt;/f:ObjectPageSection&gt;
          &lt;/f:sections&gt;
      &lt;/f:ObjectPageLayout&gt;
  &lt;/mvc:View&gt;
  </code></pre>
  
  <p>Here is my controller code.</p>
  
  <pre><code>/*global location history */
  sap.ui.define([
      "ariba/so/kaaguidedassistance/controller/BaseController",
      "sap/ui/model/json/JSONModel",
      "sap/m/MessageToast",
      "sap/m/ColumnListItem",
      "sap/m/TextArea",
      "sap/m/Text"
  ], function (BaseController, JSONModel, MessageToast, ColumnListItem, TextArea, Text) {
      "use strict";
  
      return BaseController.extend("ariba.so.kaaguidedassistance.controller.GuidedAssistance", {
  
          onInit: function () {
              this.getRouter().getRoute("guidedAssistance").attachMatched(this.onRouteMatched, this);
          },
          onRouteMatched: function (oEvent) {
              var oParameters = {
                  "ID": oEvent.getParameter("arguments").flowId,
                  "gaorgak": "GA"
              };
              this.getView().setModel(new JSONModel({
                  "pageTitle": oParameters.ID
              }), "title");
              $.ajax({
                  url: "private url",
                  type: "POST",
                  data: JSON.stringify(oParameters),
                  contentType: "application/json",
                  success: function (data) {
                      this.getView().setModel(new JSONModel(data), "garows");
                  }.bind(this),
                  error: function (e) {
                      MessageToast.show(e.statusText);
                  }
              });
              oParameters.gaorgak = "GAK";
              $.ajax({
                  url: "private url",
                  type: "POST",
                  data: JSON.stringify(oParameters),
                  contentType: "application/json",
                  success: function (data) {
                      this.getView().setModel(new JSONModel(data), "gakrows");
                  }.bind(this),
                  error: function (e) {
                      MessageToast.show(e.statusText);
                  }
              });
          },
          onEdit: function () {
              var oTable = this.byId("gaTable");
              oTable.setMode("None");
              oTable.bindItems({
                  path: "garows&gt;/flow",
                  template: new ColumnListItem({
                      cells: [
                          new Text({
                              text: "{garows&gt;ID}"
                          }),
                          new TextArea({
                              value: "{garows&gt;value_long}",
                              growing: true,
                              growingMaxLines: 7
                          }),
                          new TextArea({
                              value: "{garows&gt;Type}"
                          }),
                          new TextArea({
                              value: "{garows&gt;Action}"
                          }),
                          new TextArea({
                              value: "{garows&gt;Button1}"
                          }),
                          new TextArea({
                              value: "{garows&gt;Button2}"
                          }),
                          new TextArea({
                              value: "{garows&gt;Button3}"
                          }),
                          new TextArea({
                              value: "{garows&gt;Button4}"
                          }),
                          new TextArea({
                              value: "{garows&gt;Button5}"
                          }),
                          new TextArea({
                              value: "{garows&gt;Button6}"
                          }),
                          new TextArea({
                              value: "{garows&gt;Active_Flag}"
                          })
  
                      ]
                  }),
                  key: "ID"
              }).setKeyboardMode("Edit");
              oTable = this.byId("gakTable");
              oTable.setMode("None");
              oTable.bindItems({
                  path: "gakrows&gt;/flow",
                  template: new ColumnListItem({
                      cells: [
                          new Text({
                              text: "{gakrows&gt;Flow_ID}"
                          }),
                          new TextArea({
                              value: "{gakrows&gt;Keywords}",
                              growing: true,
                              growingMaxLines: 7
                          }),
                          new TextArea({
                              value: "{gakrows&gt;Intersection1}",
                              growing: true,
                              growingMaxLines: 7
                          }),
                          new TextArea({
                              value: "{gakrows&gt;Intersection2}",
                              growing: true,
                              growingMaxLines: 7
                          }),
                          new TextArea({
                              value: "{gakrows&gt;Logic_Group}"
                          }),
                          new TextArea({
                              value: "{gakrows&gt;Logic_Order}"
                          }),
                          new TextArea({
                              value: "{gakrows&gt;Points}"
                          }),
                          new Text({
                              text: "{gakrows&gt;ID}"
                          })
                      ]
                  }),
                  key: "ID"
              }).setKeyboardMode("Edit");
  
          },
          onCancelEdit: function () {
              var oTable = this.byId("gaTable");
              oTable.setMode("Delete");
              oTable.bindItems({
                  path: "garows&gt;/flow",
                  template: new ColumnListItem({
                      cells: [
                          new Text({
                              text: "{garows&gt;ID}"
                          }),
                          new Text({
                              text: "{garows&gt;value_long}"
                          }),
                          new Text({
                              text: "{garows&gt;Type}"
                          }),
                          new Text({
                              text: "{garows&gt;Action}"
                          }),
                          new Text({
                              text: "{garows&gt;Button1}"
                          }),
                          new Text({
                              text: "{garows&gt;Button2}"
                          }),
                          new Text({
                              text: "{garows&gt;Button3}"
                          }),
                          new Text({
                              text: "{garows&gt;Button4}"
                          }),
                          new Text({
                              text: "{garows&gt;Button5}"
                          }),
                          new Text({
                              text: "{garows&gt;Button6}"
                          }),
                          new Text({
                              text: "{garows&gt;Active_Flag}"
                          })
  
                      ]
                  }),
                  key: "ID"
              }).setKeyboardMode("Navigation");
              oTable = this.byId("gakTable");
              oTable.setMode("Delete");
              oTable.bindItems({
                  path: "gakrows&gt;/flow",
                  template: new ColumnListItem({
                      cells: [
                          new Text({
                              text: "{gakrows&gt;Flow_ID}"
                          }),
                          new Text({
                              text: "{gakrows&gt;Keywords}"
                          }),
                          new Text({
                              text: "{gakrows&gt;Intersection1}"
                          }),
                          new Text({
                              text: "{gakrows&gt;Intersection2}"
                          }),
                          new Text({
                              text: "{gakrows&gt;Logic_Group}"
                          }),
                          new Text({
                              text: "{gakrows&gt;Logic_Order}"
                          }),
                          new Text({
                              text: "{gakrows&gt;Points}"
                          }),
                          new Text({
                              text: "{gakrows&gt;ID}"
                          })
                      ]
                  }),
                  key: "ID"
              }).setKeyboardMode("Navigation");
          },
          onSubmit: function () {
              var oGak = this.getModel("gakrows").getData().flow;
              var oData = [];
              oData.push(this.getModel("garows").getData().flow[0]);
              for (var i = 0; i &lt; oGak.length; i++) {
                  oData.push(oGak[i]);
              }
  
              this.getOwnerComponent().getModel("guidedAssistance").
              loadData("private url", JSON.stringify(oData),
                  true, "POST", true, false, {});
  
          },
          onGaDelete: function (oEvent) {
              //trying to get the row values here.
          },
          onGakDelete: function (oEvent) {
              //trying to get the row values here.
          }
  
      });
  
  });
  </code></pre>
  
  <p>The expected result is to get the row values in my controller.</p>