Skip to Content
0

Cannot load Fragment in extended UI5 application

Dec 25, 2016 at 06:58 PM

63

avatar image

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);
capture.png (8.7 kB)
10 |10000 characters needed characters left characters exceeded

Can you paste your bootstrap part from HTML ? Namespace :

mytravelandexpense.TRV_TE_CREExtension.view' 

is pointing to null somehow.

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers