打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
如何找到SAP UI5控件ID生成的准确时间点和代码位置

In one of my blog How to monitor the control registration and deregistration , I demonstrate one approach to enable you to find the location where a given control which you are interested is created or destructed. Still use the master list below for example:

In the xml view, its id is defined as “list”:

And in the runtime, the id has naming convention “__xmlview[id]–list”. Where is this runtime id generated?

Following the tips in my previous blog, we can easily find the callstack where control runtime id is generated.

By reading the code if seems the runtime id did consist of container xml view id and the control id itself defined in xml view.

In order to prove my assumption, I wrote the following code and re-launch my UI. This time the breakpoint is triggered, with the very list id “list” passed in.

After I debugged into function createId in line 334, I get my guess verified: the runtime id of a control consists of its container view’s id and its own id defined in the container view, as displayed below:

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
eclipse入门:开发eclipse插件
《Android Dev Guide》系列教程9:用户界面之声明布局
Android
Introducing the Portlet Specification, Part 1
Jakarta
UI: Become windowless
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服