mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 22:04:38 +08:00
few updaes + download b64 file event client functi (#1068)
update CC add download B64 event frontend
This commit is contained in:
parent
6cf397e986
commit
db6df23594
|
@ -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| &&
|
||||
|
|
|
@ -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| &&
|
||||
|
|
|
@ -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| &&
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user