天天看点

SAP Fiori Elements 本地项目的 annotations.xml 文件

SAP Fiori Elements 本地项目里的 Annotations.xml,可以定义一些本地 annotations,来覆盖掉来自后台 OData 服务里的注解。

例如:我在 Annotations.xml 里重新定义 List Report 里应该显示的表项:

SAP Fiori Elements 本地项目的 annotations.xml 文件
SAP Fiori Elements 本地项目的 annotations.xml 文件

上面的代码重新定义了 Copy 按钮的标签,同时 List Report 默认只显示两个表项:Product 和 MainProductCategory,同时将 Product 的 Label 更改为 12345,运行时效果:

SAP Fiori Elements 本地项目的 annotations.xml 文件

但是我们仍然可以通过配置的方式,将其他 column 一起显示出来:

SAP Fiori Elements 本地项目的 annotations.xml 文件

如图所示:

SAP Fiori Elements 本地项目的 annotations.xml 文件

继续阅读