天天看點

SAP Cloud for Customer跨component的跳轉

SAP CRM WebUI裡的跨UI component跳轉大家都很熟悉了,常見的場景是從search result的hyperlink裡點選進入overview page.

在C4C裡, end user也是通過同樣的方式從search result進入overview page, 實作的方式和CRM WebUI稍有不同,search result 和overview 通過一個叫thing type的model聯系起來,search result 裡的一個hyperlink field綁到了thing type, thing type又綁定了overview page ( C4C裡叫thing insepctor ), 這樣runtime的時候,C4C的UI架構(名叫Oberon)就能通過thing type解析出navigation target, 即Overview page.

Artifacts involved in cross component navigation in C4C

SAP Cloud for Customer跨component的跳轉

(1) there is one field in result list rendered as hyperlink, bound to BO uuid field

SAP Cloud for Customer跨component的跳轉

(2) BO uuid field is bound to my thing type model:

SAP Cloud for Customer跨component的跳轉

(3) My thing type is assigned with overview page Jerry_TI, so that in the runtime, Jerry_TI is identified as navigation target.

SAP Cloud for Customer跨component的跳轉

最後實作的效果:

click hyperlink 333,

SAP Cloud for Customer跨component的跳轉

and it will navigate to detail page with instance id 333:

SAP Cloud for Customer跨component的跳轉

繼續閱讀