title: SAPUI5 List binding with filtered data in XML view
body: <p>I hope you are doing well</p>
  
  <p>Currently i'm trying to bind a filtered data to a list control in xml view in the oninit event of the controller the odata service url is like this</p>
  
  <p><a href="http://mikmo.mylocalhost.com/MIKMOWCFDataService.svc/view_VendorGroup" rel="nofollow noreferrer">http://mikmo.mylocalhost.com/MIKMOWCFDataService.svc/view_VendorGroup</a>?$filter=VendorID%20eq%201</p>
  
  <p>i used the code below</p>
  
  <pre><code>var sListURI = "http://mikmo.mylocalhost.com/MIKMOWCFDataService.svc";
          var oListModel = new sap.ui.model.odata.ODataModel(sListURI, false);
          var oListModelJson = new sap.ui.model.json.JSONModel();
          oListModel.oHeaders = {
              "DataServiceVersion": "2.0",
              "MaxDataServiceVersion": "2.0"
          };
          oListModel.read("/view_VendorGroup", null, ["$filter=VendorID eq " + window.VendorID], null, function(oData, oResponse) {
              oListModelJson.setData(oData);
              oListModelJson.loadData(oData);
  
          }, null);
  
          //oListModelJson.bindList(sPath, [oContext], [aSorters], [aFilters], [mParameters])
          oListModelJson.attachRequestCompleted(function(oData, oEvent) {
  
          });
          myList.setModel(oListModelJson, "VendorGroups");
  </code></pre>
  
  <p>and in the XML view </p>
  
  <pre><code>&lt;List growing="true" growingThreshold="100" headerText="{i18n&amp;gt;businessareas}" id="lstVendorGroups"&gt;
                              &lt;items&gt;
                                  &lt;!--&lt;ObjectListItem title="{VendorGroups&gt;GroupName}" type="Active" press=".onItemSelected" /&gt;  --&gt;
                                  &lt;StandardListItem id="stListItem" /&gt;
                              &lt;/items&gt;
                          &lt;/List&gt;
  </code></pre>
  
  <p>What i need to know is how to bind the list items in the attachRequestCompleted method with the data
  Thanks in advance </p>