3.5 Integration Option: UI5 SDK - SAP/application-support-center GitHub Wiki
Overview
The SAPUI5/OpenUI5 SDK is included as a core component of ASC. The Contents of this SDK can easily be previewed from the Admin UI: When in the "View App" mode, press "Application Support Center Preview" and select Show -> In-app View. Developers can include or reference the SDK in their UI5 web applications providing a prebuilt Help screen which pulls its data from the ASC Admin UI. The data pulled includes Help, Release Notes, Announcements and App Contacts. The asc_ui5_lib.js file is served on the public path of the router, making it accessible without authentication. However, a valid app id, server URL and authorization/access token will need to be included to sync any data.
Step 1: Open the popup
In your web application JS code
onUI5PopupPress: function (oEvent) {
try {
jQuery.sap.registerModulePath("sap.asc", "/asc_ui5_lib");
jQuery.sap.require("sap.asc");
sap.asc.setHelpServer("http://localhost");
sap.asc.setAppId(123);
sap.asc.setAppVersion("");
sap.asc.setAppIconUrl("./resources/images/icon_default.svg");
sap.asc.setAccessToken("ABC123");
sap.asc.setSupportEmail("[email protected]");
sap.asc.init();
sap.asc.open();
} catch (err) {
console.log(err);
jQuery.sap.log.error("Could not load ASC");
}
},