Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3458

Re: SAPUI5 - Update rows in one table based on selection in another table

$
0
0

Assume you are getting the selected row values from Table1.

Need to apply filter for Table based on your selected Table1 row,

So in the below example "_oTable" is your table2.

try this,

 

  onSearch: function(oEvent) {
  var comboBoxValue = this.byId("oComboBox").getValue(),
  oBinding = this._oTable.getBinding("items"),
  oFilter;
  if (comboBoxValue || comboBoxValue === "") {
  this._oTable.setShowOverlay(false);
  oFilter = new sap.ui.model.Filter("SupplierName", "EQ", comboBoxValue);
  oBinding.filter([oFilter]);
  }

  }


SAPUI5 Explored


Viewing all articles
Browse latest Browse all 3458


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>