few updaes + download b64 file event client functi (#1068)

update CC
add download B64 event frontend
This commit is contained in:
choper725 2024-04-10 22:25:42 +03:00 committed by GitHub
parent 6cf397e986
commit db6df23594
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 5 deletions

View File

@ -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| &&

View File

@ -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| &&

View File

@ -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| &&

View File

@ -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: