关于sap:SAPUI5-List-Report-table-里的普通按钮全局按钮-和-Determining-按钮

5次阅读

共计 662 个字符,预计需要花费 2 分钟才能阅读完成。

我在 manifest.json 的 extends 区域里定义了一个一般的自定义按钮,global 属性为 false:

"extends": {
            "extensions": {
                "sap.ui.controllerExtensions": {
                    "sap.suite.ui.generic.template.ListReport.view.ListReport": {
                      "controllerName": "com.sap.jerry.jerryfioriapp.ext.controller.ListReportExtension",
                        "sap.ui.generic.app": {
                          "SEPMRA_C_PD_Product": {
                            "EntitySet": "SEPMRA_C_PD_Product",
                            "Actions": {
                              "ActionName1": {
                                "id" : "ActionName1",
                                "text" : "Action Name One",
                                "press" : "onCustomAction1",
                                "requiresSelection": false,
                                "global":false
                              }
                            }
                        }
                    }
                }        
            }
            }
        },

外观如下:

global 属性改成 true 后:

button 的按钮地位产生了扭转,跑到页面右上角了:

从 breakoutActions.fragment.xml 的实现源代码里发现,custom action 还有一个 determining 属性:

设成 true 之后,跑到屏幕下方 footer 区域了。尽管地位产生了变动,不影响点击按钮后的事件响应。

更多 Jerry 的原创文章,尽在:” 汪子熙 ”:

正文完
 0