Skip to Content
avatar image
Former Member

Sapui5 Add Objectpagelayout to standard Page view

Hi everybody,

I'm struggling with the following problem. I've created a normal application which contains the following structure:

<app>

<pages>

<page>content</page>

</pages></app>

What I'd like to do is add a component which is called ObjectPageLayout, because it has a lot of components which are interesting. (jumping to sections etc). Unfortunately I'm not able to add a component like the objectpage layout to the application within the App tags. All examples of sap just already start with the objectpagelayout instead of putting it into the page tag.

Does anyone have an idea how to incorporate the objectpage layout into the structure as stated above?

Hope you can help!

Kind regards

Laurens

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 15 at 03:51 PM

    The object page should replace the page, not be within it.

    <app><pages><ObjectPageLayout></ObjectPageLayout></pages></app>

    Regards,

    Jamie

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16 at 10:55 AM

    Thank you for the answer! You've put me on the right track! I finally solved the issue using the following code:

    <m:App>
    <m:Pages>
    <ObjectPageLayout></ObjectPageLayout>
    </m:Pages>
    </m:App>

    I had problems with the app and pages tags because I was using sap.m and sap.uxap. OPL needs the uxap part but then the client looks into the same library for the app and pages tags. But those are tin the sap,m library. Now I'm more familiar with using the different library's and its namespaces.

    Thanks again!

    Laurens

    Add comment
    10|10000 characters needed characters exceeded