diff --git a/src/01/02/z2ui5_cl_core_http_get.clas.abap b/src/01/02/z2ui5_cl_core_http_get.clas.abap index 26be64468..871ff4f36 100644 --- a/src/01/02/z2ui5_cl_core_http_get.clas.abap +++ b/src/01/02/z2ui5_cl_core_http_get.clas.abap @@ -264,6 +264,12 @@ CLASS Z2UI5_CL_CORE_HTTP_GET IMPLEMENTATION. ` )` && |\n| && ` let oCrossAppNavigator;` && |\n| && ` switch (args[0]) {` && |\n| && + ` case 'DOWNLOAD_B64_FILE':` && |\n| && + ` var a = document.createElement("a");` && |\n| && + ` a.href = args[1];` && |\n| && + ` a.download = args[2];` && |\n| && + ` a.click();` && |\n| && + ` break;` && |\n| && ` case 'CROSS_APP_NAV_TO_PREV_APP':` && |\n| && ` oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");` && |\n| && ` oCrossAppNavigator.backToPreviousApp();` && |\n| && diff --git a/src/01/05/z2ui5_cl_cc_message_manager.clas.abap b/src/01/05/z2ui5_cl_cc_message_manager.clas.abap index b47a9d72a..636da2abc 100644 --- a/src/01/05/z2ui5_cl_cc_message_manager.clas.abap +++ b/src/01/05/z2ui5_cl_cc_message_manager.clas.abap @@ -70,7 +70,7 @@ CLASS Z2UI5_CL_CC_MESSAGE_MANAGER IMPLEMENTATION. ` },` && |\n| && |\n| && ` Model2Messaging( ){` && |\n| && - ` debugger;` && |\n| && +* ` debugger;` && |\n| && ` var Model = this.getProperty("items");` && |\n| && ` if(!Model) { return; }` && |\n| && |\n| && diff --git a/src/01/05/z2ui5_cl_cc_spreadsheet.clas.abap b/src/01/05/z2ui5_cl_cc_spreadsheet.clas.abap index ab662b64f..bd6dd884b 100644 --- a/src/01/05/z2ui5_cl_cc_spreadsheet.clas.abap +++ b/src/01/05/z2ui5_cl_cc_spreadsheet.clas.abap @@ -65,14 +65,18 @@ CLASS Z2UI5_CL_CC_SPREADSHEET IMPLEMENTATION. ` type: oControl.getProperty("type"), ` && |\n| && ` press: function (oEvent) { ` && |\n| && |\n| && + `debugger;` && |\n| && ` var aCols =` && i_columnconfig && `;` && |\n| && |\n| && - ` var oBinding, oSettings, oSheet, oTable, vTableId, vViewPrefix,vPrefixTableId;` && |\n| && + ` var oBinding, oSettings, oSheet, vTableId, vViewPrefix,vPrefixTableId;` && |\n| && ` vTableId = oControl.getProperty("tableId")` && |\n| && - ` // vViewPrefix = sap.z2ui5.oView.sId;` && |\n| && - ` // vPrefixTableId = vViewPrefix + "--" + vTableId;` && |\n| && ` vPrefixTableId = sap.z2ui5.oView.createId( vTableId );` && |\n| && - ` oTable = sap.ui.getCore().byId(vPrefixTableId);` && |\n| && + ` var oTable;` && |\n| && + ` if (!oTable) { oTable = sap.z2ui5.oView.byId(vTableId); };` && |\n| && + ` if (!oTable) { oTable = sap.z2ui5.oViewNest.byId(vTableId); };` && |\n| && + ` if (!oTable) { oTable = sap.z2ui5.oViewNest2.byId(vTableId); };` && |\n| && + ` if (!oTable) { oTable = sap.z2ui5.oViewPopup.Fragment.byId('popupId',vTableId); };` && |\n| && + ` if (!oTable) { oTable = sap.z2ui5.oViewPopover.byId(vTableId); };` && |\n| && ` oBinding = oTable.getBinding("rows");` && |\n| && ` if (oBinding == null) {` && |\n| && ` oBinding = oTable.getBinding("items");` && |\n| && diff --git a/src/02/z2ui5_if_client.intf.abap b/src/02/z2ui5_if_client.intf.abap index 7b74af81f..c84b1d625 100644 --- a/src/02/z2ui5_if_client.intf.abap +++ b/src/02/z2ui5_if_client.intf.abap @@ -13,6 +13,7 @@ INTERFACE z2ui5_if_client cross_app_nav_to_ext TYPE string VALUE `CROSS_APP_NAV_TO_EXT`, cross_app_nav_to_prev_app TYPE string VALUE `CROSS_APP_NAV_TO_PREV_APP`, popup_nav_container_to TYPE string VALUE `POPUP_NAV_CONTAINER_TO`, + download_b64_file TYPE string VALUE `DOWNLOAD_B64_FILE`, END OF cs_event. CONSTANTS: