SAP C4C OBN(Object Based Navigation)不能工作的原因分析
My series of Cloud Application Studio Blogs
- How to detect EditMode in an Embedded Component
- Step by step to enable your custom BO with attachment upload functionality
- Step by step to create an Adobe Print form in Cloud application Studio
- How to render PDF which displays picture from the image attachment of your custom BO
- How to get current logged on business user’s employee information and assigned organization unit via ABSL
- How to implement dynamic access control based on custom BO using OWL
- How to make Code List Restriction work when control field and restricted field are not on the same BO
- How to implement custom number range using custom business object
- Two approaches to create Code List in Cloud Studio
- Create Dynamic Code List via Custom Business Object Association
- Step by step to develop Thing Type based navigation and BO Object based navigation
- Put Extension field into embedded component and make it visible in Standard UI
- One possible cause that embedded component fails to display in UI
- Step by step to create HTML Mashup and make it visible in UI
- Step by step to enable Text Collection for your custom BO
- Automatically send an Email notification to line manager via Workflow in Account application
- Step by step to create Object Value Selector in Cloud Application Studio
- Two approaches to fill an UI field with dedicated logic implemented in Cloud Application Studio
- How to execute BO action on multiple selected BO instances in AdvancedListPane
- How to add custom validation logic on mobile phone field in Contact TI
- An example about how I analyze why some OBN button does not work
- Step by step to create OBN button which navigates from standard UI to custom UI
I have created two OBN button in Service Request TI item table’s toolbar via extensibility explorer.
My expectation is that once button “toStandardQC” is pressed, the standard Service Request QC view will be displayed, see example below. And When button “Jerry Create” is clicked, a new custom QC view will be displayed instead. As you can see from screenshot above, the “Jerry Create” button is disabled in the runtime. Why?
Here below is how I analyze this issue.
(1) In design time the enable attribute of this button is set as true as expected. Note down the name of automatically generated event handler for onClick event:EV_NAME_f8067313a9424b3e89b2370b3b2a1f5a
If you set breakpoint in file ButtonWrapper, function initializeControl, you can observe that the instance of this button is created in the runtime.
(2) The enable property of OBN button is bound to the automatically generated data model field, whose path is/EventHandler/EV_NAME_f8067313a9424b3e89b2370b3b2a1f5a.Enabled. For the button “JerryCreate”, the value of bound model field is false, so in the runtime this OBN button is disabled.
Just check the other OBN button which works correctly, and the bound data field has value “true”.
You can also inspect the data model field value by appending “debugMode=true” in C4C URL and check value from Client Inspector in the popup.
(3) Now we need to figure out why data model field for “Jerry Create” button is determined as false in the runtime. In Chrome development tool, check the HTTP response for ServiceRequest TI page. Search the response by keyword “1f5a”:
In the hit you can find the root cause: the OBN target – my custom new QC view, is not put to any work center yet.
So solution is quite simple, just create a new work center, a new work center view and put this new QC view to the work center view, and assign the work center view to my test user.
After that the “Jerry Create” OBN button works as well:
Once created, the new custom QC view could be displayed correctly as well.
For the complete solution for this OBN enablement, please refer to blog Step by step to create OBN button which navigates from standard UI to custom UI.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2723725/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CRM WebUI, CRM Fiori和C4C裡的Direct NavigationWebUINavigation
- Job不能執行原因分析
- SAP Cloud Application Programming bookshop 例子 Vue頁面不能正常顯示的原因分析CloudAPPVue
- SAP系統執行慢的原因分析
- SAP CRM note建立按鈕被禁用的原因分析
- TSM不能執行排程的原因分析及處理
- SAP C4C工作流(Workflow)接收方自動決定的一個例子
- SAP CRM Fiori應用冗餘round trip的原因分析
- SAP C4C Opportunity和SAP ERP Sales流程的整合Unity
- SAP ERP classification和C4C的同步
- SAP WebClient UI One Hit Navigation的實現方法WebclientUINavigation
- Document flow API in SAP CRM and C4CAPI
- SAP C4C裡沒有選擇Port binding的url Mashup行為分析
- React Navigation 的個人分析與融合ReactNavigation
- 如何使用配置的方式修改SAP C4C UI的欄位標籤,以及背後的工作原理UI
- 資料庫伺服器CPU不能全部利用原因分析資料庫伺服器
- SAP Fiori應用裡出現http request錯誤的原因分析HTTP
- 訪問SAP C4C Business Configuration工作中心時遇到的錯誤資訊
- SAP 電商雲 Category Navigation 頁面設計GoNavigation
- Based on the SAP R3 Basis Support Function DetailFunctionAI
- Angular和SAP C4C的事件處理佇列Angular事件佇列
- 檢視SAP CRM和C4C的UI technical資訊UI
- 在SAP C4C裡觸發SAP ERP的ATP check和Credit check
- 不能摸魚的工作不是好工作?
- SAP 電商雲 Spartacus UI 的 Product Category Navigation UI 實現UIGoNavigation
- code::blocks不能除錯的可能原因BloC除錯
- Paper Reading:A Survey of Deep Learning-based Object DetectionObject
- 查詢分析器不能單步除錯的的原因及解決方法除錯
- 利用Excel匯入資料到SAP C4CExcel
- [ChatGPT 勘誤] SAP UI5 的 sap.ui.base.ObjectChatGPTUIObject
- SAP CRM和C4C資料同步的兩種方式概述:SAP PI和HCI
- SAP 中的 BOPF(Business Object Processing Framework)ObjectFramework
- javascript Object分析JavaScriptObject
- CRM, C4C和Hybris的工作流簡介
- linux下crontab 不能執行的原因Linux
- CRM, C4C和SAP Hybris的資料庫層設計資料庫
- 如何啟用SAP C4C自定義BO的Text Collection功能
- SAP CRM Genil Text-for-Key-Codes vs SAP C4C只讀欄位