ITPub博客

首页 > 应用开发 > IT综合 > SAP C4C基于Thing Type和BO Object两种跳转方式介绍

SAP C4C基于Thing Type和BO Object两种跳转方式介绍

原创 IT综合 作者:i042416 时间:2020-08-31 10:59:55 0 删除 编辑

My series of Cloud Application Studio Blogs

Thing Type based navigation

When I click the hyperlink in a given row in OWL, it is expected that the corresponding Thing Inspector page will be opened.



(1) maintain the related associated Thing Type container for the hyperlink field where the navigation is triggered.



(2) Change the Thing Type Mode to static and choose the correct Thing Type for target Thing Inspector page.



BO Object based navigation

The simplest approach is to create OBN via wizard. However in this blog I explain another way which implements OBN by purely manual step. (1) Create a PTP from context menu:



Choose the BO belonging to target TI page:



Create a parameter for created PTP:



(2) In target TI controller, create an unbound data field OBN_key:



And create a new inport and bind the PTP created in previous step into this inport. Bind the parameter defined in PTP into the data field OBN_key created just now.



Create an event handler openTI which contains a BO Read Operation, and pass OBN_Key as read parameter.



Assign the created event handler to the inport, so that when inport is executed, the correct BO instance specified by parameter OBN_Key will be read to render the TI page.



(3) In navigation source OWL, create a new Edit button and maintain the navigation according to below setting:



The outport openTIOut should also be assigned to PTP created in step one. Create an event handler to fire this outport:



And finally assign this event handler to Edit button.



In the runtime when Edit button is clicked,



TI page will be opened:



要获取更多Jerry的原创文章,请关注公众号"汪子熙":


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24475491/viewspace-2715900/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
SAP成都研究院开发专家,SAP社区导师,SAP中国技术大使。

注册时间:2018-01-20

  • 博文量
    1895
  • 访问量
    876092