Skip to Content
0
Jan 12, 2023 at 06:00 PM

Filter blank space after rendering

270 Views

Dear All,

We are working on a requirement Ui5/Fiori App wherein, we are converting already existing interactive ALV grid report to Fiori App.

In ABAP: Selection screen --> Business wise working capital(first screen) --> Business/Sub Business wise Working capital(Second screen) --> Business/Sub Business/Sub sub Business wise Working capital(Third screen)

For the above, we have designed a model with metadata same for all the three views. Now our plan is such that, once after Model.read is done, we are fetching all the data in one model(containing Business wise working capital(first screen) --> Business/Sub Business wise Working capital(Second screen) --> Business/Sub Business/Sub sub Business wise Working capital(Third screen)). At the time of view rendering, thinking of filtering data from the model accordingly

For first view controller(Business wise working capital(first screen)) --> onAfterRendering function --> trying to filter data with sub business and sub sub business that are space or blank. But when we do that, we are getting error as below

The filter operator "undefined" is unknown, filter will be ignored. -

Code in onAfterRendering function is as follows:

onAfterRendering : function() {

var oFilter = new Filter('SBU_DESC',FilterOperator.EQ,"NULL");

/*var aFilter = [oFilter];*/

this.getView().byId("idTable").getBinding("items").filter([oFilter], "Application");

}

Please let us know, where are we going wrong