on 11-17-2015 11:49 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vijay
actually I have one filter elements in filterBar
the filter elements consists one CoboBOx ..
<ComboBox>
<core:Item key="ProductId" text="Name" />
<core:Item key="ProductId" text="Name1" />
<core:Item key="ProductId" text="Name2" />
</ComboBox>
suppose i select Name1
then after pressing GO button
Name1 should be printer in Table.
Regards,
Virendra
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]);
}
}
});
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.