on 10-20-2019 7:50 AM
Hello,
I need the functionality where the user enters the customer Id, EAN, Category into the multiInput and the filter should filter the tuples satisfying all the user entries togather and my filters are working individually currently. also I should remove or add further filtersgroups.
<fb:FilterGroupItem groupName="__$INTERNAL$" name="c" label="Customer ID" id='idCustomer' partOfCurrentVariant="true" visibleInFilterBar="true">
<fb:control>
<MultiInputtype="Text"placeholder="Enter Customer id" showValueHelp="true" valueHelpRequest="onF4Help"></MultiInput>
</fb:control>
</fb:FilterGroupItem>
<fb:FilterGroupItem groupName="__$INTERNAL$" name="e" label="EAN / UPC" id ="idEan" partOfCurrentVariant="true" visibleInFilterBar="true">
<fb:control>
<MultiInputtype="Text"placeholder="Enter EAN / UPC" showValueHelp="true" valueHelpRequest="onF4Help"></MultiInput>
</fb:control>
</fb:FilterGroupItem>
<fb:FilterGroupItem groupName="__$INTERNAL$" name="ef" label="Category" id = "idGroupName" partOfCurrentVariant="true" visibleInFilterBar="true">
<fb:control>
<MultiInputtype="Text"placeholder="Enter Category" showValueHelp="true" valueHelpRequest="onF4Help"></MultiInput>
</fb:control>
</fb:FilterGroupItem>
And corrosponding to its controller.js file i have written as...
Like for customers input checking...
if (customer != '') { var oFilter1 = new sap.ui.model.Filter( "customer", sap.ui.model.FilterOperator.Contains, customer); oTableSearchState.push(oFilter1); };... same for rest of 3's input boxes...
.
var oFilter3 = new sap.ui.model.Filter( "customer", sap.ui.model.FilterOperator.NE, customer ); if (oTableSearchState.length == 0) { oTableSearchState.push(oFilter3); };
var oFilter = new sap.ui.model.Filter({ filters: oTableSearchState, and: false });
I am also popping dialog box for selecting more then one input from multiInput that user is entering ...
fieldId: "",
cityPopup: null,
supplierPopup: null,
onF4Help: function(oEvent){
this.fieldId = oEvent.getSource().getId();
if(this.cityPopup === null){
this.cityPopup = new sap.ui.xmlfragment("sap.ui.demo.worklist.Fragment.CustomerInputDialog", this);
var oSorter = new sap.ui.model.Sorter('customer');
this.cityPopup.bindAggregation("items",{
path: "REPGR>/repgr", sorter: oSorter, template: new sap.m.DisplayListItem({
label: "{REPGR>customer}", value: "{REPGR>Product_Ean}", info: "{REPGR>Product_Ean}"
}) });
this.getView().addDependent(this.cityPopup);
this.cityPopup.setTitle("Customers");
} this.cityPopup.open();
}
Your help is awaited..
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.