Skip to Content
0
Jun 07, 2017 at 12:54 PM

Table Data is not Refreshed on search Result view

117 Views Last edit Jun 07, 2017 at 02:15 PM 2 rev

Hi Experts,

I am new in SAP UI5.

I have issue in refreshing data in Search result view.

I have two separate view Search and Result View , After Input value in Search field then i am displaying data in Result View.

Check the below Code.

var srvUrl = "proxy/http/XXXX:8064/sap/opu/odata/SAP/ZUI5_DEMO_SRV";

srvModel = new sap.ui.model.odata.ODataModel(srvUrl);

this.getView().byId("table1").setModel(srvModel);

The above is working when i am writing in OnInit() Method but the same code is not working in case of Search Event at the time of press search button.

In advance thanks for the help .

Regards

Alok