2017-07-05 2 views
0

Ich habe bereits eine Ansicht erstellt: Kopfzeile, Inhalt und Fußzeile, aber Fußzeile und Inhalt werden nicht angezeigt und es wird kein Fehler angezeigt. Das Verzeichnis in form1.view.xml ist korrekt, weil beim Laden der form1-Ansicht kein Fehler aufgetreten ist. wenn ich den Headercode befehle und ich mich aktualisiere, werden die Inhaltsanzeige und die Fußzeile immer noch nicht angezeigt. Wenn ich die Kopfzeile und den Inhalt befehle, wird die Fußzeile angezeigt. Wie behebe ich dieses Problem?Kopfzeile und Inhalt SAPUI5

Form1.view.xml

<App id="navCon" 
    class="footer-height footer-color header-color background-home background-color 
          footer-size-color panel-header"> 

    <!-- Header --> 
    <mvc:XMLView viewName="sap.ui.taspen.taspen.Header" /> 

    <App> 
     <pages> 
      <Page> 
       <Panel id="panelModule" headerText="Header form" class="panelForm"> 
        <content> 
         <Label text="Ini form 1" /> 
        </content> 
       </Panel> 
      </Page> 
     </pages> 
    </App> 

    <!-- Footer --> 
    <mvc:XMLView viewName="sap.ui.taspen.taspen.Footer" /> 
</App> 

Rubrik:

<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" 
    xmlns="sap.m" xmlns:t="sap.ui.table" xmlns:l="sap.ui.layout" xmlns:tnt="sap.tnt" 
    controllerName="sap.ui.taspen.taspen.Header" xmlns:html="http://www.w3.org/1999/xhtml"> 
    <App> 
     <pages> 
      <Page showHeader="false"> 
       <tnt:ToolHeader> 
        <html:img src="icon/logo_taspen.png" class="header-logo-taspen" /> 
        <html:p class="text-header">NEW APPLICATION CORE BUSINESS</html:p> 
        <ToolbarSpacer width="20px" /> 

        <tnt:ToolHeaderUtilitySeparator /> 
        <ToolbarSpacer> 
         <layoutData> 
          <OverflowToolbarLayoutData priority="NeverOverflow" 
           minWidth="20px" /> 
         </layoutData> 
        </ToolbarSpacer> 

        <Text text="Selasa, 21/4/2017/11:07 AM" class="text-white" /> 
        <Text text="Hello, Jhon Doe" class="text-white"> 
         <layoutData> 
          <OverflowToolbarLayoutData priority="NeverOverflow" /> 
         </layoutData> 
        </Text> 

        <Button icon="sap-icon://log" type="Reject" press="logoutPress" 
         class="button-logout button-logout-icon margin-logout"> 
         <layoutData> 
          <OverflowToolbarLayoutData priority="NeverOverflow" /> 
         </layoutData> 
        </Button> 
       </tnt:ToolHeader> 
      </Page> 
     </pages> 
    </App> 
</core:View> 

Footer:

<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" 
    xmlns="sap.m" xmlns:t="sap.ui.table" xmlns:l="sap.ui.layout" xmlns:tnt="sap.tnt" 
    controllerName="sap.ui.taspen.taspen.Footer" xmlns:html="http://www.w3.org/1999/xhtml"> 
    <App> 
     <Page showHeader="false"> 
      <footer> 
       <OverflowToolbar id="otbFooter"> 
        <Button type="Transparent" text="Kebijakan dan Privasi" 
         press="kebdanprivPress" /> 
        <Button type="Transparent" text="Bantuan" press="bantuanPress" /> 
        <ToolbarSpacer /> 
        <Label text="All Rights Reserved PT. Taspen Persero" /> 
        <html:img src="icon/copyright-symbol.png" class="footer-logo-copyright" /> 
        <Label text="2018" /> 
       </OverflowToolbar> 
      </footer> 
     </Page> 
    </App> 
</core:View> 

Antwort

1

Um custome Header statt Seitenkopf anzeigen Sie

<customHeader></customHeader> 

tag.and zu verwenden, haben Sie noch in <content></content> Tag legen müssen. kann sehen, dass Sie ein Inhalts-Tag verpassen.