venom February 2016

Tree Table Filters Sapui5

i have a problem with filtering rows in tree table, the normal table with same filters are working fine thou

here is the normal table aggregation code:

tTotals.bindAggregation("rows",{
                    path: "totals>/prg_head",
                    filters: [
                        new sap.ui.model.Filter("ID_PRG_VERSION", sap.ui.model.FilterOperator.EQ, filterKRVR.program),
                        new sap.ui.model.Filter("ID_SCENARIO", sap.ui.model.FilterOperator.EQ, filterKRVR.scenario),
                        new sap.ui.model.Filter("I_YEAR", sap.ui.model.FilterOperator.EQ, filterKRVR.year)
                    ]}  
                );

and here is the tree table aggregation

tEvents.bindAggregation("rows",{
                        path: "events>/prg_years(ID_SCENARIO=" + filterKRVR.scenario + ",I_YEAR=" + filterKRVR.year + "m)" + "/HisGTO",
                        filters: [
                            new sap.ui.model.Filter("ACTION_AMOUNT", sap.ui.model.FilterOperator.NE, 0)
                        ],
                        parameters: {
                            navigation: {
                                'prg_gto':  "HisPIPE",
                                'prg_pipe': "HisKS",
                                'prg_ks':   "HisLK"
                            }
                        }
                    });

i even tried to write the filter inside the path of aggregation,tested it in xsodata link in this way, it worked, but from developer's tools i can see there is no filter applied to tEvents table, but for tTotals its ok. btw, the model for these two aggregations is the same. So how can i create a new filter for tree table?!

thank you all for the help!

Answers


plota February 2016

Which version of Ui5 library you have?

Post Status

Asked in February 2016
Viewed 2,180 times
Voted 11
Answered 1 times

Search




Leave an answer