【问题标题】:SAPUI5 in vscode - After debug project don't show any errors but didn't show all pagevscode中的SAPUI5-调试项目后不显示任何错误但未显示所有页面
【发布时间】:2021-04-02 09:21:10
【问题描述】:

我正在 VS Code 中创建一个带有 SAP WEB IDE 的 sapui5 扩展的项目。 我做了一个视图,当我调试项目时没有返回任何错误,但在浏览器中只显示页面名称。

这是我的视图代码:

<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>

这是浏览器中的结果:

我不知道发生了什么。昨天我完成了一个具有相同配置的项目,一切正常。今天什么都没跑!我能做些什么来解决这个问题?

【问题讨论】:

标签: visual-studio-code sapui5 vscode-debugger sap-web-ide


【解决方案1】:

我想你可以把它放在一个&lt;App&gt; 容器中,如下所示。

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

或者直接将&lt;MessagePage&gt; 放在视图下。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-07
    • 1970-01-01
    • 1970-01-01
    • 2016-02-11
    • 2017-01-15
    • 1970-01-01
    相关资源
    最近更新 更多