Skip to Content
0
M B
May 13, 2020 at 09:54 PM

Sapui5 odata filter update view

95 Views

Hello,

I am new to Sapui5 and I am having trouble to update the view after the user filter a field in a table .

How do I update the table in the the view with oData.results after I read the Odata with a filter

Here is the event called

handleActiviteSearch:function (oEvent) {
               var sValue = oEvent.getParameter("value");
              this.getModel().read("/ActivitePrincipaleSet",{
                       filters: [new Filter("Reseau", FilterOperator.Contains, sValue),
                                 new Filter("Activite", FilterOperator.Contains, sValue) ],
                       success: function (oData) {
                              ***** How do I update the View with the result???
                                }
                           });
fragment.jpg                      },

Thank you for your help!!!

Attachments

fragment.jpg (59.5 kB)