如何找到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:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2717878/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何檢測SAP UI5應用裡控制元件的初始化和析構時間點UI控制元件
- SAP UI5 確保控制元件 id 全域性唯一的實現方法UI控制元件
- 善用Object.defineProperty巧妙找到修改某個變數的準確程式碼位置Object變數
- 如何找到SAP UI5裡阻止頁面繼續載入的出問題的具體程式碼位置UI
- 如何找到 SAP Spartacus 裡某個 Component TypeScript 編譯後生成的 JavaScript 位置TypeScript編譯JavaScript
- 如何使用原生的 JavaScript 程式碼,觸發 SAP UI5 按鈕控制元件的點選事件處理函式JavaScriptUI控制元件事件函式
- 深入學習SAP UI5框架程式碼系列之五:SAP UI5控制元件的例項資料修改和讀取邏輯UI框架控制元件
- 深入學習SAP UI5框架程式碼系列之四:SAP UI5控制元件的後設資料實現UI框架控制元件
- SAP UI5 sap.ui.vk 名稱空間內的控制元件介紹UI控制元件
- 深入學習SAP UI5框架程式碼系列之六:SAP UI5控制元件資料繫結的實現原理UI框架控制元件
- SAP UI5 的 TimePicker ,一個鐘錶外觀的時間選擇控制元件試讀版UI控制元件
- 深入學習UI5框架程式碼系列之八:談談UI5 的檢視控制元件 ID,以及其和 Angular 檢視的異同UI框架控制元件Angular
- 五顏六色的程式碼:論程式碼的正確位置
- SAP UI5 初學者教程之十一 :SAP UI5 容器類控制元件 Page 和 PanelUI控制元件
- 如何找到SAP Cloud for Customer標準培訓和認證方面的資訊Cloud
- 如何從 SAP Spartacus Product Detail 頁面,找到其 Angular 實現 Component 的位置AIAngular
- SAP UI5 標準應用的多語言支援 - SAP UI5 執行時語言判定機制UI
- SAP UI5 sap.ui.layout.Grid 控制元件概述UI控制元件
- SAP UI5 SimpleForm 控制元件的 adjustLabelSpan 屬性UIORM控制元件
- SAP UI5 檢視裡的 OverflowToolbar 控制元件UI控制元件
- SAP UI5 DynamicPage 控制元件介紹UI控制元件
- SAP UI5 FlexibleColumnLayout 控制元件介紹UIFlex控制元件
- SAP UI5 xml 檢視裡定義的控制元件,執行時如何建立其例項的?UIXML控制元件
- SAP BSP和JSP頁面裡UI元素的ID生成邏輯JSUI
- 如何實現SAP UI5 Web Component React控制元件的載入效果UIWebReact控制元件
- 關於 SAP UI5 SimpleForm 控制元件裡的 ColumnsL 和 labelSpanXL 的測試UIORM控制元件
- MySQL並行複製延時時間不準確MySql並行
- SAP UI5 列表控制元件分頁顯示資料時,如何自定義分頁大小UI控制元件
- SAP UI5 Web Component的React表格控制元件用法UIWebReact控制元件
- SAP UI5 Form 控制元件的 ColumnLayout 佈局特性UIORM控制元件
- SAP UI5 裡的 Busy Dialog 控制元件使用概述UI控制元件
- SAP UI5 裡的 Busy Indicator 控制元件使用概述UIIndicator控制元件
- 通過最簡單的button控制元件,深入學習SAP UI5框架程式碼系列之零控制元件UI框架
- 如何使用SAP UI5 SDK網站查詢指定控制元件的屬性如何使用UI網站控制元件
- SAP UI5 應用開發教程之三十二 - 如何建立一個自定義 SAP UI5 控制元件UI控制元件
- Spring框架裡解析配置檔案的準確位置Spring框架
- [WPF]獲取控制元件間的相對位置控制元件
- SAP UI5的控制元件DatePicker的DateFormat屬性詳解UI控制元件ORM