Not able to call Odata Service in UI5
<p>I am calling Odata service for my UI5 application. I am using below mentioned code for creating the model.</p>

<pre><code>var oModel = new sap.ui.model.json.JSONModel("https://&lt;&gt;/sap/opu/odata/SIE/MED_TEST_OSIRIS_SRV/SalesOrderSet?$format=json");
//Getting the Data and putting in list model
sap.ui.getCore().setModel(oModel,"table");
</code></pre>

<p>With this code , I can call the Odata and display the results in a table.</p>

<p>But now when I am applying filter like this :</p>

<blockquote>
  <p>https://&lt;>/sap/opu/odata/SIE/MED_TEST_OSIRIS_SRV/SalesOrderSet?$filter=Country_SP
  eq 'DE'</p>
</blockquote>

<p>I can get the results in browser's address bar but not in the code like :</p>

<pre><code>var sUrl = "https://&lt;&gt;/sap/opu/odata/SIE/MED_TEST_OSIRIS_SRV/SalesOrderSet?$filter=Country_SP eq 'DE'";

var oModel = new sap.ui.model.json.JSONModel(sUrl);
</code></pre>

<p>what I am doing wrong ? I can filter the results in the browser with the same url :(</p>

<p>Regards,
Mayank</p>