如何将SAP C4C TI页面的值传递到Embedded Component里去

简介:

先看最后达到的效果,下图蓝色矩形框是我自开发的UI,里面的ID 25234来自C4C标准的Lead UI里的Lead ID。这个值是如何从Lead Thing Inspector UI传递到Embedded Component的input field里的呢?

新建一个Embedded Component,data model标签页里,选择Lead这个标准的BO. 创建一个Data field LeadID,将其和BO字段ID绑定。

新建一个input field,其值绑定到data field LeadID上。

剩下的问题是这个Embedded Component运行时,LeadID如何被赋以对应的值。

另外新建一个data field leadID,不对其做绑定。

新建一个inport,取名fromLead, 创建一个参数ObjectID, 这个名称可以随便取。ParameterBinding, 选择将其绑定到/Root/inport/leadID上。

RequestFireOnInitialization设置为true,onFire属性需要为其绑定一个event handler:

创建一个event handler,取名readLead,明细如下:

最后将该Embedded Component添加到Sales Lead TI页面时,将TI页面的outport里的参数SalesLeadID同Embedded Component inport的参数ObjectID绑定即可。

本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。

相关文章
|
2月前
|
JavaScript 前端开发 数据库
如何在 SAP CRM 里通过 navigation framework 跳转到 ABAP Webdynpro 页面
如何在 SAP CRM 里通过 navigation framework 跳转到 ABAP Webdynpro 页面
21 0
|
6月前
SAP Commerce Cloud 的 Product Carousel Component 介绍
SAP Commerce Cloud 的 Product Carousel Component 介绍
22 0
|
6月前
|
API
如何用 SAP Commerce Cloud CMS API 批量返回多个 CMS Component 数据
如何用 SAP Commerce Cloud CMS API 批量返回多个 CMS Component 数据
34 0
|
6月前
|
XML 前端开发 数据格式
使用 class sap.ui.core.UIComponent.createContent 创建 Component 实例
使用 class sap.ui.core.UIComponent.createContent 创建 Component 实例
25 0
|
3月前
|
消息中间件 存储 监控
什么是 SAP CRM Middleware Component 里的 PRODUCT_R3_ADAPTER
什么是 SAP CRM Middleware Component 里的 PRODUCT_R3_ADAPTER
22 0
|
2月前
|
前端开发
SAP UI5 应用如何使用 iframe 嵌入其他 HTML 页面试读版
SAP UI5 应用如何使用 iframe 嵌入其他 HTML 页面试读版
30 0
|
5月前
|
JSON 数据格式
通过 SAP UI5 IconTabBar 控件结合 FlexibleColumnLayout 实现多页面 Master-Detail 布局试读版
通过 SAP UI5 IconTabBar 控件结合 FlexibleColumnLayout 实现多页面 Master-Detail 布局试读版
30 0
|
6月前
|
JavaScript 前端开发 搜索推荐
SAP 电商云 footer 区域 Link Component HTML 源代码的详细讲解
SAP 电商云 footer 区域 Link Component HTML 源代码的详细讲解
69 0
|
6月前
|
前端开发 JavaScript UED
SAP Commerce Cloud 通过 SmartEdit 添加 Component 的一个例子
SAP Commerce Cloud 通过 SmartEdit 添加 Component 的一个例子
55 0
|
6月前
|
Web App开发 前端开发 JavaScript
SAP UI5 的声明式初始化 Component 定义(Declarative API for Initial Components)
SAP UI5 的声明式初始化 Component 定义(Declarative API for Initial Components)
21 0