動態控制SAP CRM附件的可編輯性
In production code it is ususally necessary to also have authorization control on attachment maintenance.
Most of the time it is done via authorization object.
In this example I just use a checkbox to control it during the whole session, in the screenshot below all buttons are disable since the “Allow Edit” checkbox is not selected.
The idea of control is, in GS_CM component controller there is a value node ATTRIBUTES which could be bound by consuming component.
in the controller class below, Content management framework will firstly check whether the current BOR type is valid ( line 13 ~ line 18), an invalid type will lead to read only mode.
then the display mode flag will be set according to the field display of value node.
based on these findings, we can start development in our ui component.
step1:
create an event handler for checkbox status change and just use a global variable to store the flag:
step2:
create a new value node ATTRIBUTE in custom controller
redefine INIT.
here we buffer the collection wrapper reference into a global variable of component controller for later usage.
redefine ON_NEW_FOCUS. The bufferred collection wrapper for ATTRIBUTE node is used here:
step3:
in WD_USAGE_INITIALIZE method of ZSMCATTR component controller, bind the context node of custom controller to GS_CM’s attributes node.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2707053/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CRM WebClient UI Text 可編輯與否的控制邏輯WebclientUI
- 動態隱藏某些特殊型別的SAP CRM附件型別
- CRM和C4C product category hierarchy的可編輯性控制邏輯Go
- 使用程式碼修改SAP CRM附件的屬性
- SAP CRM頁面assignment block動態顯示與否的控制邏輯BloC
- SAP CRM附件模型的Authorization scope原理介紹模型
- SAP CRM WebClient UI表格編輯模式的除錯明細WebclientUI模式除錯
- 三種動態控制SAP CRM WebClient UI assignment block顯示與否的方法WebclientUIBloC
- 如何啟用SAP CRM附件UI上的advanced按鈕UI
- 如何讓你的SAP CRM應用支援附件上傳
- 【轉載】SAP ABAP ALV報表控制編輯行,編輯單元格
- SAP CRM settype的重要性
- 使用ABAP程式碼給SAP CRM Business object建立附件AttachmentObject
- SAP CRM Product category的決定邏輯Go
- 如何阻止指定型別的SAP CRM附件被上傳到伺服器型別伺服器
- SAP CRM點了附件的超連結後報錯的處理方式
- WPF一個簡單的屬性編輯控制元件控制元件
- 隨處可編輯的編輯器之神VIM
- 動態規劃-編輯距離動態規劃
- 通過建立動態型別 動態構建Expression Select表示式來控制Property可見性型別Express
- SAP CRM附件在應用伺服器上的儲存原理解析伺服器
- Leetcode 編輯距離(動態規劃)LeetCode動態規劃
- 有關Linux的可執行程式——動態編譯、靜態編譯、readelfLinux行程編譯
- SAP CRM 解決方案功能的全面性
- SAP CRM organization Model(組織架構模型)自動決定的邏輯分析架構模型
- SAP CRM note的自動拷貝
- SAP Business Application Studio的許可權控制APP
- SAP MM 給合同的ITEM上傳附件以及附件查詢
- SAP CRM WebClient UI html 格式的 Text 顯示邏輯WebclientUIHTML
- 【自定義使用者控制元件】 wpf 可繫結的RichTextBox 編輯器。控制元件
- SAP Fiori 的附件處理(Attachment handling)
- laravel-admin的form表單在編輯時能否隱藏初始值,但是是可編輯修改狀態LaravelORM
- SAP CRM 裡 Attachment 搜尋的實現邏輯介紹
- SAP CRM WebClient UI Text Type 顯示的過濾邏輯WebclientUI
- Dynamics 365 可編輯子網格的欄位禁用不可編輯
- IjkPlayer. 可編譯及動態除錯native編譯除錯
- SAP CRM One order裡user status和system status的mapping邏輯APP
- SAP CRM Settype COM_TA_R3_ID的對映邏輯