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

Use of UI UXAP library elements

Dears experts,

I'd like to embed in my view a SAP.UXAP ui element (ObjectPageLayout in my exemple) but it does not work... any thoughts?

Here is my code :

<core:View
    xmlns:core="sap.ui.core"
    xmlns:mvc="sap.ui.core.mvc"
    xmlns="sap.uxap"
    xmlns:m="sap.m"
    controllerName="mycontrollername"
    xmlns:html="http://www.w3.org/1999/xhtml"
    height="100%">

    <m:Page title="Title" class="sapUiContentPadding"
        showNavButton="false">
        <m:headerContent>
            <m:Button icon="sap-icon://print" tooltip="Imprimer" press="onPressImprimer" />
        </m:headerContent>
       
         <ObjectPageLayout id="ObjectPageLayout">
            <headerTitle>
                <ObjectPageHeader>
                    <m:Label text="Personal description"/>
                </ObjectPageHeader>
            </headerTitle>
            <m:headerContent>
                <m:Text value="some KPI info"/>
            </m:headerContent>
             </ObjectPageLayout>
       
    </m:Page>
</core:View>

Thanks a lot,

Jérémy.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Feb 11, 2016 at 07:16 PM
    1. <m:Page title="Title" class="sapUiContentPadding"
    2. showNavButton="false">


    is redundant, ObjectPageLayout acts as a page

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Ok I've learned that yes Maksim an ObjectPageLayout acts as a Page but you can still have a ObjectPageLayout nested in a Page! 😊


      Finaly I had to delete the headerContent part in the ObjectPageLayout object... but no explanation why! 😭

  • Posted on Feb 11, 2016 at 05:32 PM

    not working could mean anything....

    can u be more specific? and error message....

    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.