- SAP C4C HTML Mashup initializePa
- SAP Cloud for Customer的HTML Mash
- SAP Cloud for Customer里的HTML Mas
- SAP C4C里嵌入SAP Analytics Cloud的案例
- 如何创建URL Mashup并插入到SAP Cloud for
- 如何创建HTML Mashup并插入到SAP Cloud for
- 如何下载 SAP Cloud for Customer Clou
- 如何将bing搜索页面以HTML Mashup的方式嵌入到SAP
- SAP C4C Mashup port bindingF4帮助对
- SAP C4C url mashup跳转原理 - C4C UI到
在Cloud Application Studio里创建的HTML mashup,保存到C4C后台后,其元数据再被读取到前端消费,格式如下:
![](https://img.haomeiwen.com/i2085791/26471ac646ae4392.png)
![](https://img.haomeiwen.com/i2085791/d3f7d6be5c02acf6.png)
我在C4C UI上指定的Mashup参数,URL的值如下:
![](https://img.haomeiwen.com/i2085791/288185231a651b14.png)
成功解析出input为Lead_Info_In:
![](https://img.haomeiwen.com/i2085791/d7023447d42538b0.png)
![](https://img.haomeiwen.com/i2085791/59c58df4014eb395.png)
没有按照我期望的情形进行执行:
![](https://img.haomeiwen.com/i2085791/8cbea9e9ccb87bf1.png)
![](https://img.haomeiwen.com/i2085791/9567b47ae5b7c927.png)
MashupHTMLContainer.prototype.initializePane = function() {
var oController = this.getController();
var oModel = oController.getComponentModel();
var oEmbeddingcontext = oController.getEmbeddingContext();
this._oHtmlPage.setController(oController);
if (oModel) {
this._createMashupModel(oModel._oData, oEmbeddingcontext);
// checks if mashup has an inport or not
if (this._sInport) {
// creates inport adapter and attaches it to inport events
this._oInportAdapter = new InportAdapter(this._sInport, oController, true);
this._oInportAdapter.on("inportFired", $.proxy(this._onInPortFired, this));
if (!this._oMashupModel.hasHtmlCode()) {
// inport and source uri --> fire inport to build complete source uri
this._oInportAdapter.refire();
if (this._sInport === "ExtensionFieldsInPort") {
this._getSourceUriFromModel(this._oMashupModel);
}
}
} else {
// no inport and no html content --> source uri already valid
if (!this._oMashupModel.hasHtmlCode()) {
this._getSourceUriFromModel(this._oMashupModel);
}
}
}
};
没有执行这个refire:
![](https://img.haomeiwen.com/i2085791/e15ea22533d6a3de.png)
解析出来的aTargets为空:
![](https://img.haomeiwen.com/i2085791/76d3eab3529042d9.png)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
![](https://img.haomeiwen.com/i2085791/fc7ecd97deb67090.png)
网友评论