Skip to Content
0
Former Member
Dec 25, 2016 at 06:58 PM

Cannot load Fragment in extended UI5 application

195 Views

I'm trying to load a custom fragment in an extended controller of a UI5 application.

My fragment name is: ExpenseApproversCustom.fragment.xml, and when I try to load it I get the following:

Here is my controller code to load the fragment:

 this._expenseApprovers = sap.ui.xmlfragment(
                    "mytravelandexpense.TRV_TE_CREExtension.view.ExpenseApproversCustom",
                    this
                );
this.getView().addDependent(this._expenseApprovers);

Attachments

capture.png (8.7 kB)