Skip to Content
author's profile photo Former Member
Former Member

Uncaught Error: Missing template or factory function for aggregation content of Element sap.ui.layout.VerticalLayout#idview22--vLayout !

Hi Anyone,


Please help me. By using the aggregation binding concept, I need to bind the vertical Layout in xml view. In vertical Layout under "Content" trying to call the Factory Function while I am facing the above mentioned error. For your reference kindly find the below screen snap.

View.xml



Controller.js



data.json File

@Thanks In Advance.

Capture2.PNG (18.1 kB)
Capture3.PNG (15.2 kB)
Capture4.PNG (11.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 28, 2016 at 11:31 AM

    Hi Sravya,

    A similar kind of sample: Plunker

    In the above sample, I have used table as my container where I create different controls based on model data.

    Few things to check in your code:

    1. Check the file path for factory function.

    2. Did you declare the factory function path in controller definition to which the view is associated, something like this:


    Regards,

    Sai.


    Capture.jpg (108.0 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 28, 2016 at 11:24 AM

    Hi Sravya,

    I am not sure whether my guess is correct or not.

    The way you defined content might be wrong.

    The error you got is the syntax error.

    Please go through the below link.

    SAPUI5 Explored

    Hope you will find a solution.

    Thanks,

    Deepak Raj.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.