-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Description
The example in the OpenSAP Training does not or no longer work:
This part is not working:
onShareClick: function (oEvent) {
var oExtensionApi = this.base.templateBaseExtension.getExtensionAPI();
...this.base is not accessible, or do I miss a step before?
I suppose you need this instead?
sap.ui.define([
'sap/ui/core/mvc/ControllerExtension',
'sap/suite/ui/generic/template/extensionAPI/extensionAPI', // ADD THIS
],
function (
ControllerExtension,
ExtensionAPI // ADD THIS
) {
"use strict";
return ControllerExtension.extend("customer.my-app-id.enhanced.myController", {
onShareClick: (oEvent) => {
const oExtensionApi = ExtensionAPI.getExtensionAPI() // CHANGE THISMetadata
Metadata
Assignees
Labels
No labels