SAP WebClient UI One Hit Navigation的實現方法
One hit navigation means if only one result found during search, the detail page of that search result entity will be opened automatically without user manual action.
See example below: after search button is clicked, the detail page of 201300024454 will be opened automatically.
You could follow the below steps to achieve:
(1) You must enable one hit navigation behavior for your business role.
double click “Parameter Assignment”:
add a new parameter ONE_HIT_DIRECT_DISPLAY with value TRUE
(2) Implement your search button event handler as below.
Usenavigate_if_result_is_unique to trigger the potential navigation.
method EH_ONSEARCH.
DATA: lv_result TYPE REF TO if_bol_entity_col,
lr_comp TYPE REF TO CL_ZONEHITN_BSPWDCOMPONEN_IMPL,
lv_onehit_navigation TYPE abap_bool.
lr_comp ?= me->comp_controller.
lv_result = zcl_jerry_tool=>get_query_results( me->typed_context->search->collection_wrapper ).
IF cl_crm_uiu_one_hit_direct_nav=>navigate_if_result_is_unique( iv_value_help_mode = abap_false
ir_result_col = lv_result ) = abap_false.
lr_comp->typed_context->searchresult->collection_wrapper->set_collection( lv_result ).
ENDIF.
endmethod.
You should put the detail page of search result into a separate UI component and include it into search component via component usage. Expose its main window as interface view and inbound plug, so that one search result is unique, the detail page of that component could be chose and navigated via UI framework.
(3) Create an entry for the detail component in “Define Work Area Component Repository“:
(4) Define Navigation Bar Profile:
choose Navigation bar profile TPM-PRO, double click on “Define Generic Outbound Plug Mappings”:
Configure the target ID defined in step3 here
Now you could test in UI.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2715429/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP 電商雲 Spartacus UI 的 Product Category Navigation UI 實現UIGoNavigation
- 自己實現一個SAP WebClient UI Repository Information SystemWebclientUIORM
- SAP WebClient UI的白屏問題分析WebclientUI
- SAP WebClient UI component context node class單元測試方法WebclientUIContext
- SAP WebClient UI的會話重啟原理WebclientUI會話
- 使用note++開發SAP WebClient UIWebclientUI
- 如何在SAP WebClient UI裡使用jChartFXWebclientUI
- SAP CRM WebClient UI和Hybris backoffice UI開發的相同點WebclientUI
- 在SAP WebClient UI裡顯示倒數計時的UIWebclientUI
- SAP CRM WebClient UI和Fiori UI混搭並存WebclientUI
- SAP UI5 Cross Application Navigation (跨應用間跳轉)的本地模擬實現UIROSAPPNavigation
- SAP WebClient UI drop down list(下拉選單)的一個故障和解決方法WebclientUI
- SAP CRM WebClient UI異常的持久化機制WebclientUI持久化
- 將SAP CRM WebClient UI的表格匯出成PDFWebclientUI
- 如何將SAP WebClient UI的表格匯出成PDFWebclientUI
- 三種動態控制SAP CRM WebClient UI assignment block顯示與否的方法WebclientUIBloC
- 如何在SAP WebClient UI裡使用HANA Live reportWebclientUI
- SAP WebClient UI配置決定(configuration)的邏輯介紹WebclientUI
- SAP CRM WebClient UI的Delta處理機制介紹WebclientUI
- SAP CRM WebClient UI html 格式的 Text 顯示邏輯WebclientUIHTML
- SAP CRM WebClient UI 支援的一些 url 引數WebclientUI
- SAP CRM WebClient UI和Hybris的controller是如何被呼叫的WebclientUIController
- 如何使用SAP CRM WebClient UI實現一個類似新浪微博的字數統計器WebclientUI
- SAP CRM WebClient UI的on_new_focus應該怎麼理解WebclientUI
- SAP CRM WebClient UI表格編輯模式的除錯明細WebclientUI模式除錯
- SAP CRM WebClient UI和Hybris Commerce的懶載入機制WebclientUI
- SAP WebClient UI和business switch相關的邏輯介紹WebclientUI
- 增強版本的自開發SAP WebClient UI Repository Information SystemWebclientUIORM
- SAP CRM WebClient UI Text Type 顯示的過濾邏輯WebclientUI
- 在SAP CRM WebClient UI中用javascript觸發ABAP eventWebclientUIJavaScript
- 使用Selenium自動化測試SAP CRM WebClient UIWebclientUI
- SAP WebClient UI component模型後設資料解析工具WebclientUI模型
- ABAP Webdynpro和CRM WebClient UI不同的UI表現機制WebclientUI
- Angular的scope. apply和CRM WebClient UI的modify方法AngularAPPWebclientUI
- SAP CRM WebClient UI cross component跳轉的一個具體例子WebclientUIROS
- SAP WebClient UI頁面標籤的決定邏輯介紹WebclientUI
- SAP CRM WebClient UI Text 可編輯與否的控制邏輯WebclientUI
- 使用SAP Transaction Launcher將ABAP Webdynpro嵌入到WebClient UI中WebclientUI