SAP Fiori Elements List Report Smart Table Toolbar 的 XML 视图实现
2023-09-14 09:03:54 时间
http://localhost:8080/resources/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTableToolbar.fragment.xml
SmartTableToolbar.fragment.xml 里,包含了 BreakoutActions.fragment:
http://localhost:8080/resources/sap/suite/ui/generic/template/ListReport/view/fragments/BreakoutActions.fragment.xml
源代码:
<core:FragmentDefinition xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:build="sap.build">
<template:if test="{= ${tmpEntitySet>EntitySet} === ${parameter>/entitySet} }">
<template:repeat list="{tmpEntitySet>Actions}" var="customaction">
<!--all break out actions which are neither determining nor global-->
<template:if test="{= !${customaction>determining} && !${customaction>global}}">
<Button id="{parts: [{path: 'customaction>'}, {path: 'tabItem>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBreakoutActionButtonId'}"
enabled="{parts: [{path: 'customaction>'}, {path: 'tabItem>'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBreakoutActionEnabledKey'}"
text="{customaction>text}"
press="{customaction>press}" type="Transparent">
<layoutData>
<OverflowToolbarLayoutData priority = "{customaction>importance}"/>
</layoutData>
</Button>
</template:if>
</template:repeat>
</template:if>
</core:FragmentDefinition>
运行时,该 XML 视图源代码被 XMLPreprocessor.js 解析:
SmartTableToolbar.fragment.xml 里包含了 BreakoutActions.fragment.xml:
getBreakoutActionButtonId:
更多Jerry的原创文章,尽在:“汪子熙”:
相关文章
- 4. SAP UI5 XML 视图(View)初探
- SAP UI5 应用 SimpleForm 控件 ResponsiveGridLayout 布局的工作原理深入剖析试读版
- SAP Fiori Elements 在本地测试模式下如何修改 List Report 里字段标签和图标
- SAP UI5 web Component的React组件,如何实现事件响应
- local path of sap-ui-core-less-140903345-dbg.js
- SAP UI5 view.bindElement will also trigger an odata request
- sap.ca.ui.utils.busydialog scenario discussion
- 在 Excel 里使用 ODBC 读取 SAP BTP 平台上 CDS view 的数据
- SAP Cloud for Customer CLR(Code List Restriction)的一种高级用法
- 两种找出SAP UI Code List配置位置的小技巧
- SAP 电商云 Spartacus UI Quick Order 的路由和 CMS 实现
- 如何覆盖 SAP Spartacus 默认的 css style
- SAP Spartacus B2B unit list页面抬头的计数逻辑的实现原理
- SAP Spartacus里unit list tree节点collapse all按钮的实现逻辑
- SAP Spartacus organization unit list抬头显示所有unit的标题实现
- SAP Spartacus organization unit list的实现Component
- SAP Spartacus organization unit里org list的focus实现问题
- 一段在SAP C4C里触发S4HANA outbound Delivery的ABSL代码
- SAP Cloud for Customer里Sales Order和Sales Quote的建模方式
- 如何使用 controllerExtensions 给 SAP Fiori Elements List Report 的表格注册事件响应函数
- SAP Fiori Elements drop down list debug
- SAP ABAP Gateway Client 里 OData 测试的 PUT, PATCH, MERGE 请求有什么区别