Skip to Content

How to return data from filterBar to table .??

Hi all

I facing problem in my Code

Actually i want make filter bar and table ..

when i select some data of filter elements in filterbar then after pressing GO button the data should be display in table.

pls share any mock up Code for that.

Regards,

Virendra Soni

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 17, 2015 at 12:02 PM

    Please check this code. it should be useful. Filter Example-1 and Filter Example-2


    Kindly let me know if you need any more information.

    Add a comment
    10|10000 characters needed characters exceeded

    • when you click on "GO" Button. read the data from the Combo Box and set to corresponding table. then the table is executed and display the filtered data in UI5 table.

      <Button text="Filter" press="onSearch" icon="sap-icon://filter"/>

      its called onSearch in control

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.