简体   繁体   English

如何使用 HTML 禁用 Fiori UI5 应用程序中的按钮

[英]How to disable buttons in Fiori UI5 app using HTML

I am not an expert in scripting languages.我不是脚本语言方面的专家。 I am trying to hide buttons in SAP Fiori app, by debugging in Mozilla browser using the "Inspect element" tool.我试图通过使用“检查元素”工具在 Mozilla 浏览器中调试来隐藏 SAP Fiori 应用程序中的按钮。 If I delete the HTML code, the button is deleted but I want to achieve this behavior through code in the SAP Fiori app.如果我删除 HTML 代码,按钮将被删除,但我想通过 SAP Fiori 应用程序中的代码实现此行为。 Please, could you guide me how to achieve this in SAP Fiori (UI5) app?拜托,你能指导我如何在 SAP Fiori (UI5) 应用程序中实现这一点吗?

Screenshot of HTML HTML 截图

在此处输入图像描述

In order to hide a button, you might delete the button in the corresponding XML view.为了隐藏按钮,您可以删除相应 XML 视图中的按钮。 Another possibility might be, to use the “visible”-property of the button control.另一种可能性是,使用按钮控件的“可见”属性。

In your case with the App maintain Personal Data you can remove the create record button via backend customizing.在您使用应用程序维护个人数据的情况下,您可以通过后端自定义删除创建记录按钮。 There is no need to modify or extend the Fiori app.无需修改或扩展 Fiori 应用程序。 The customizing view in the backend system is V_T7XSSPERSUBTY.后台系统中的自定义视图是V_T7XSSPERSUBTY。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM