cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error: Missing template or factory function for aggregation items of Element sap.m.Table

Former Member
3,250

I am getting the error message in the screenshot when I click for the 2nd time (after come back from the other view). Could you please help how to resolve this issue? Thanks

Here is my code:

onInit: function () {
            var this_ = this;

            this.getView().addEventDelegate({
                onBeforeShow: function (evt) {

                    var oModel = new sap.ui.model.json.JSONModel();
                    oModel = sap.ui.getCore().getModel("appid");
                    var app_id = oModel.getData().app_id;

                    var oTable = this_.byId("capabilityList");
                    var oTemplate = this_.getView().byId("columnListItem").clone();
                    oTable.bindAggregation("items", {
                        path: 'zearnModel>/zearn_capabilities',
                        parameters: {
                            $filter: 'APPLICATION_ID eq ' + app_id
                        },
                        template: oTemplate,
                        templateShareable: true
                    });

                }
            });            
        },

Accepted Solutions (0)

Answers (0)