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

Re: After passing the filter parameter not getting the list

$
0
0

Yes I am not seen any data on list

here i am binding the result..

------------------------------------------------------------------------------------------------------------

onBeforeRendering: function() {
    alert("123");
    var temp = (sap.ui.getCore().getModel("OdataModel"));
    alert(temp);
   this.getView().setModel(sap.ui.getCore().getModel("i18n"),"i18n");
//   this.getView().setModel(sap.ui.getCore().getModel("deviceId"),"deviceId");
   this.getView().setModel(sap.ui.getCore().getModel("OdataModel"));

    },

 

// update list binding

 

        var list = this.getView().byId("list");

        var binding = list.getBinding("items");

        binding.filter(oFilters);

    },

   

    _pushNewOrders: function () {

          var oView = this.getView();

          var oData = oView.getModel().read("/PO_APPROVALEKKKOset", null,[ "$filter=Ivappid eq 'ZMOB_PO' and Ivmodid eq 'PO_APPROVL' and Ivsmodid eq 'PO_APPROVL' and Userid eq 'VBHANOT'"], false);

      },

     

    handleRefresh: function (oEvent) {

        setTimeout(jQuery.proxy(function () {

        this._pushNewOrders();

 

// Deal with any actual search query

alert("hello");

          var oList = this.getView().byId("list");

          var oSearchField = this.getView().byId("searchField");

          var sQuery = oSearchField.getValue();

          var aFilters = [];

          if (sQuery && sQuery.length) {

           // aFilters.push(new sap.ui.model.Filter("Vbeln", sap.ui.model.FilterOperator.Contains, sQuery));

           aFilters.push(new sap.ui.model.Filter("PO_number", sap.ui.model.FilterOperator.EQ, sQuery));

          }

          oList.getBinding("items").filter(aFilters);

 

        }, this), 1000);

      },

    ---------------------------------------------------------------------------------co.png


Viewing all articles
Browse latest Browse all 3132

Trending Articles