三種動態控制SAP CRM WebClient UI assignment block顯示與否的方法
Hi Friends, It is a common requirement that a certain assignment block in overview page should only be displayed under some condition, for example under control of a business switch.
Here are three ways which could control the visibility of one assignment block via code.
Approach1: dynamical view detachment
refine method DETACH_STATIC_OVW_VIEWS of the controller class of your overview page. All views put into internal table rt_viewid will be hidden by UI framework in the runtime. The code below just means you can evaluate some condition in line 3, and if the condition is met, the assignment block SearchResult will be hidden.
Approach2: dynamic UI configuration load
Create a new configuration within which only Search view is displayed. The configuration is bound to a certain UI object type.
Now we have two UI configurations. The standard configuration will display two assignment blocks by default, the configuration with UI object type = CRM_SMC will only display Search view.
Implement DO_CONFIG_DETERMINATION:
method DO_CONFIG_DETERMINATION.
" IF search result view should be hidden me->set_config_keys( iv_object_type = 'CRM_SMC'
iv_propagate_2_children = abap_false ).
" ENDIF endmethod.
Approach3: Control the visibility via business switch
This is a most elegant way, however it could only be used if you would like to control the visibility of your view via a business switch. When you are assigning your assignment view to the view area of Overview page in runtime repository, a business switch can be assigned as displayed in the picture below. If the switch is turned off, the related view will be automatically hidden by UI Framework.
After you have assigned a view to the view area of overview page, the switch ID is displayed after view name.
You could first find the related business function for switch CRM_SOC_SFWS_SMI_2 via tcode SFW1,
then find the business function status in SFW5:
If the business function is deactivated, the assignment block will also be hidden automatically.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2709636/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP CRM頁面assignment block動態顯示與否的控制邏輯BloC
- SAP CRM WebClient UI Text 可編輯與否的控制邏輯WebclientUI
- CRM product UI裡assignment block的顯示隱藏邏輯UIBloC
- SAP CRM WebClient UI html 格式的 Text 顯示邏輯WebclientUIHTML
- SAP CRM WebClient UI Text Type 顯示的過濾邏輯WebclientUI
- SAP WebClient UI overview頁面裡assignment block的可見性分析技巧WebclientUIViewBloC
- SAP CRM WebClient UI上以html格式顯示note的問題討論WebclientUIHTML
- 如何把SAP CRM WebClient UI上某個欄位高亮加粗顯示WebclientUI
- 在SAP WebClient UI裡顯示倒數計時的UIWebclientUI
- SAP S/4HANA系統Fiori UI上Adapt UI按鈕顯示與否的控制邏輯UIAPT
- 使用Selenium自動化測試SAP CRM WebClient UIWebclientUI
- SAP CRM WebClient UI和Fiori UI混搭並存WebclientUI
- SAP CRM WebClient UI異常的持久化機制WebclientUI持久化
- 將SAP CRM WebClient UI的表格匯出成PDFWebclientUI
- 在 CRM WebClient UI 中使用純 JavaScript 顯示 3D 足球效果WebclientUIJavaScript3D
- SAP CRM WebClient UI的Delta處理機制介紹WebclientUI
- SAP CRM WebClient UI 支援的一些 url 引數WebclientUI
- 在SAP CRM WebClient UI中用javascript觸發ABAP eventWebclientUIJavaScript
- SAP CRM WebClient UI和Hybris backoffice UI開發的相同點WebclientUI
- SAP CRM WebClient UI的on_new_focus應該怎麼理解WebclientUI
- SAP CRM WebClient UI表格編輯模式的除錯明細WebclientUI模式除錯
- 關於 SAP UI5 floating footer 顯示與否的單步除錯以及使用 SAP UI5 的收益UI除錯
- 在SAP CRM WebClient UI裡開啟ABAP Webdynpro頁面WebclientUI
- SAP CRM WebClient UI和ABAP Webdynpro頁面的互相跳轉WebclientUI
- 動態控制SAP CRM附件的可編輯性
- 使用SAP C4C rule editor動態控制UI上某個按鈕是否顯示UI
- 動態控制C4C UI元素的顯示和隱藏UI
- SAP CRM WebClient UI和Hybris的controller是如何被呼叫的WebclientUIController
- SAP WebClient UI One Hit Navigation的實現方法WebclientUINavigation
- Angular的scope. apply和CRM WebClient UI的modify方法AngularAPPWebclientUI
- Hybris service layer和SAP CRM WebClient UI架構的橫向比較WebclientUI架構
- SAP CRM WebClient UI cross component跳轉的一個具體例子WebclientUIROS
- SAP CRM WebClient UI和Hybris Commerce的懶載入機制WebclientUI
- Java中list顯示的三種方法Java
- 如何證明CRM WebClient UI上的應用是有狀態(Stateful)的WebclientUI
- SAP WebClient UI的白屏問題分析WebclientUI
- SAP CRM WebClient UI上將text area裡的文字清空的後臺處理WebclientUI
- Jerry答網友提問:SAP CRM WebClient UI裡的EXT,STRUCT等含義WebclientUIStruct