Skip to content

Commit

Permalink
few updaes + download b64 file event client functi (abap2UI5#1068)
Browse files Browse the repository at this point in the history
update CC
add download B64 event frontend
  • Loading branch information
choper725 authored Apr 10, 2024
1 parent 6cf397e commit db6df23
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/01/02/z2ui5_cl_core_http_get.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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| &&
Expand Down
2 changes: 1 addition & 1 deletion src/01/05/z2ui5_cl_cc_message_manager.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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| &&
Expand Down
12 changes: 8 additions & 4 deletions src/01/05/z2ui5_cl_cc_spreadsheet.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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| &&
Expand Down
1 change: 1 addition & 0 deletions src/02/z2ui5_if_client.intf.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit db6df23

Please sign in to comment.