共计 2939 个字符,预计需要花费 8 分钟才能阅读完成。
SAP Fiori elements provide designs for UI patterns and predefined templates for common application use cases.
SAP Fiori Elements 提供了预约义的模板和 UI 款式,实用于 SAP 利用的通用利用场合。
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,利用开发人员能够创立基于 OData 服务和注解的 Fiori 利用,而无需额定的 JavaScript 编程。
The resulting app uses predefined views and controllers that are provided centrally.
Fiori Elements 利用应用的视图和控制器,都是 SAP UI5 框架对立提供的。这些对立的视图,控制器,component.js, 如下图所示:
This means no application-specific view instances are required.
这种设计意味着无需利用层面的视图实例了。
The SAPUI5 runtime interprets metadata and annotations of the underlying OData service and uses the corresponding views for the SAP Fiori app at startup.
运行时,SAP UI5 解析 OData 服务和注解中蕴含的元数据,将其同业务数据一起,应用框架对立提供的视图来渲染页面。
为什么要应用 SAP Fiori Elements?
- High development efficiency to cover what 80% of all apps need
开发效率高,Fiori Elements 提供的模板,能涵盖 80% 的利用需要。
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.
利用开发人员无需一次又一次地反复创立类似的 UI,而是间接重用 SAP Fiori Elements 为大多数利用提供的可重用模板即可。
- Design consistency
Predefined floorplans, views, and controllers ensure UI consistency within and across similar apps.
因为每个 SAP Fiori Elements 利用,应用的都是对立的 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 的利用,因为应用的是 SAP UI5 对立提供的模板,这些模板由 SAP 治理,总能保障合乎最新的设计准则。
- Decoupling of UI and business logic
UI 和业务逻辑的解耦合。
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 采取元数据驱动的开发模式,应用语义化注解,从而极大缩小了前端代码的规模。开发者能够专一于业务逻辑的设计和实现。
To extend your apps, use SAP Web IDE 1.17 or higher.
如果想扩大 SAP Fiori Elements 利用,须要应用 Web IDE 1.17 之上的版本。
The OData service models (entity sets and entity types) are derived from CDS views.
OData 服务的模型 (entity sets 和 entity types) 源于 CDS view.
The CDS entities are the primary artifacts for the data model.
CDS view 是 SAP Fiori Elements 利用数据模型的首要资源。
Transactional runtime model (based on the BOPF) is generated based on annotations.
基于 BOPF 的事务性运行时模型,基于 annotation 主动生成。
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…
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.
下列资源是为了本地测试而创立的,用于模仿后盾返回的后果。
- 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.