SAP Fiori Elements 概述
SAP Fiori elements provide designs for UI patterns and predefined templates for common application use cases.
SAP Fiori Elements 提供了預(yù)定義的模板和 UI 樣式,適用于 SAP 應(yīng)用的通用應(yīng)用場(chǎng)合。
App developers can use SAP Fiori elements to create SAP Fiori applications based on OData services and annotations that don’t need JavaScript UI coding.
使用 SAP Fiori Elements,應(yīng)用開(kāi)發(fā)人員可以創(chuàng)建基于 OData 服務(wù)和注解的 Fiori 應(yīng)用,而無(wú)需額外的 JavaScript 編程。
The resulting app uses predefined views and controllers that are provided centrally.
Fiori Elements 應(yīng)用使用的視圖和控制器,都是 SAP UI5 框架統(tǒng)一提供的。這些統(tǒng)一的視圖,控制器,component.js, 如下圖所示:
This means no application-specific view instances are required.
這種設(shè)計(jì)意味著無(wú)需應(yīng)用層面的視圖實(shí)例了。
The SAPUI5 runtime interprets metadata and annotations of the underlying OData service and uses the corresponding views for the SAP Fiori app at startup.
運(yùn)行時(shí),SAP UI5 解析 OData 服務(wù)和注解中包含的元數(shù)據(jù),將其同業(yè)務(wù)數(shù)據(jù)一起,使用框架統(tǒng)一提供的視圖來(lái)渲染頁(yè)面。
為什么要使用 SAP Fiori Elements?
開(kāi)發(fā)效率高,Fiori Elements 提供的模板,能涵蓋 80% 的應(yīng)用需求。
You do not need to build the UI over and over again. Just reuse the common features required by most applications. They are provided by the SAP Fiori elements floorplans.
應(yīng)用開(kāi)發(fā)人員無(wú)需一次又一次地重復(fù)創(chuàng)建相似的 UI,而是直接重用 SAP Fiori Elements 為大多數(shù)應(yīng)用提供的可重用模板即可。
Predefined floorplans, views, and controllers ensure UI consistency within and across similar apps.
因?yàn)槊總€(gè) SAP Fiori Elements 應(yīng)用,使用的都是統(tǒng)一的 floorplans,views,和控制器,這樣保證了 UI 界面的高度一致性。
Apps created using SAP Fiori elements are kept up-to-date as they are automatically adapted to the most recent design guidelines.
基于 SAP Fiori Elements 的應(yīng)用,因?yàn)槭褂玫氖?SAP UI5 統(tǒng)一提供的模板,這些模板由 SAP 管理,總能保證符合最新的設(shè)計(jì)準(zhǔn)則。
UI 和業(yè)務(wù)邏輯的解耦合。
The metadata-driven development model uses semantic annotations and significantly reduces the amount of front-end code. Developers can focus on the business logic.
SAP Fiori Elements 采取元數(shù)據(jù)驅(qū)動(dòng)的開(kāi)發(fā)模式,使用語(yǔ)義化注解,從而極大減少了前端代碼的規(guī)模。開(kāi)發(fā)者可以專注于業(yè)務(wù)邏輯的設(shè)計(jì)和實(shí)現(xiàn)。
To extend your apps, use SAP Web IDE 1.17 or higher.
如果想擴(kuò)展 SAP Fiori Elements 應(yīng)用,需要使用 Web IDE 1.17 之上的版本。
The OData service models (entity sets and entity types) are derived from CDS views.
OData 服務(wù)的模型(entity sets 和 entity types) 源于CDS view.
The CDS entities are the primary artifacts for the data model.
CDS view 是 SAP Fiori Elements 應(yīng)用數(shù)據(jù)模型的首要資源。
Transactional runtime model (based on the BOPF) is generated based on annotations.
基于 BOPF 的事務(wù)性運(yùn)行時(shí)模型,基于 annotation 自動(dòng)生成。
The UI annotations are attached to CDS views using the tags as defined in the SAP - ABAP Programming Model for SAP Fiori guide in the documentation for your SAP NetWeaver version on SAP Help Portal at https://help.sap.com/viewer/p/SAP_NETWEAVER
UI 注解使用 SAP Fiori ABAP 編程模型里定義的 tag,附加到 CDS view 上。
Here, the annotations are read using the catalog service of SAP Gateway. This is the standard method when using the auto-exposure feature of the application infrastructure.
使用 SAP Gateway 的 catalog service 讀取注解。
The local resources localService/metadata.xml and localService/SEPMRA_PROD_MAN_ANNO_MDL.xml are generated for local tests that want to simulate back-end access.
下列資源是為了本地測(cè)試而創(chuàng)建的,用于模擬后臺(tái)返回的結(jié)果。
- localService/metadata.xml
- localService/SEPMRA_PROD_MAN_ANNO_MDL.xml
Besides the annotations that are retrieved from the back-end system, the local resource annotations.xml plays a role at runtime, as this file contains the facet descriptions for the object page. This is where you have to maintain the labels for the different facets.
總結(jié)
以上是生活随笔為你收集整理的SAP Fiori Elements 概述的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: SAP Fiori 应用里图标(Icon
- 下一篇: 什么是 SAP vocabulary-b