UNPKG

@cap-js-community/sap-afc-sdk

Version:

SAP Advanced Financial Closing SDK for CDS

14 lines (12 loc) 356 B
"use strict"; sap.ui.define([], function () { return { onPress: function (oEvent) { const baseUrl = this.getModel().getServiceUrl(); const ID = oEvent.getObject?.()?.ID ?? oEvent.getSource?.().getBindingContext?.().getObject()?.ID; if (ID) { window.open(`${baseUrl}JobResult(${ID})/data`, "_self"); } }, }; });