on 2018 Aug 17 4:44 AM
Hi experts,
We have developed chatbot functionality for our on-premise ERP using Recast.AI.
Basically, we have deployed a plugin on the On-Premise Fiori launchpad using the following code; However the Fiori launchpad freezes after the chatbot launches and we cannot execute anything on the Fiori Launchpad. The options in SAP Note 2544600 haven't helped us. Any idea, what could be the issue?
Regards,
Karan
sap.ui.define([
"sap/ui/core/UIComponent",
], function (UIComponent) {
"use strict";
return UIComponent.extend("com.abc.chatbot.Component", {
/**
* The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
* @public
* @override
*/
init: function () {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
var renderer = sap.ushell.Container.getRenderer("fiori2");
if (!document.getElementById("recast-webchat")) {
var s = document.createElement("script");
s.setAttribute("id", "recast-webchat");
s.setAttribute("src", "https://cdn.recast.ai/webchat/webchat.js");
//document.body.appendChild(s);
if (document.body != null) {
document.body.appendChild(s);
}
}
s.setAttribute("channelId", "abc");
s.setAttribute("token", "xyz");
}
});
});
Request clarification before answering.
The webchat has been updated at recast.ai end and the chatbot loads fine now on Fiori Launchpad.
Regards,
Karan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any clue on this one?
Regards,
Karan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
30 | |
9 | |
7 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.