Ana Santos
Ana Santos

Reputation: 13

SAPUI5 in vscode - After debug project don't show any errors but didn't show all page

I am making a project in VS Code with sapui5 extensions for SAP WEB IDE. I made a view and when I debug project didn't return any errors, but at the browser only appears the page name.

This is my view code:

<mvc:View
    controllerName="opensap.launchpadSeidor.launchpad.controller.Login"
    xmlns:mvc="sap.ui.core.mvc"
    displayBlock="true"
    xmlns="sap.m"

>

    <Page id="page" title="cenas" >
    <MessagePage showHeader="false"
             text="Detalhes de clientes"
             enableFormattedText="true"
             description="Escolha um cliente da lista ou adicione novo cliente carregando no botão abaixo da mesma"
             icon="sap-icon://message-warning"> 
          </MessagePage>
    </Page> 
</mvc:View>

And this is the result in the browser:

enter image description here

I don't know what is happening. Yesterday I finished a project with the same configurations and everything was OK. Today nothing runs! What can I do to fix this?

Upvotes: 0

Views: 711

Answers (1)

gill
gill

Reputation: 11

I guess you can put it in an <App> container like below.

<mvc:View controllerName="my.Controller"
  xmlns:mvc="sap.ui.core.mvc"
  xmlns="sap.m"
  displayBlock="true"
>
  <App>
    <!-- Your Message Page -->
  </App>
</mvc:View>

Or just put the <MessagePage> directly under view.

Upvotes: 1

Related Questions