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
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5CMjJTZlJ2N0ATZ1MWY5ETOyYWO0UmMkdDNlJzY4ImZh9CX5d2bs92Yl1iclB3bsVmdlR2LcNWaw9CXt92Yu4GZjlGbh5yYjV3Lc9CX6MHc0RHaiojIsJye.png)
(1) there is one field in result list rendered as hyperlink, bound to BO uuid field
(2) BO uuid field is bound to my thing type model:
(3) My thing type is assigned with overview page Jerry_TI, so that in the runtime, Jerry_TI is identified as navigation target.
最後實作的效果:
click hyperlink 333,
and it will navigate to detail page with instance id 333: