mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
abaplint fixes (#276)
This commit is contained in:
parent
c3a327a3bd
commit
41547ee4a3
|
@ -16,7 +16,7 @@
|
||||||
"rules": {
|
"rules": {
|
||||||
"7bit_ascii": false,
|
"7bit_ascii": false,
|
||||||
"abapdoc": false,
|
"abapdoc": false,
|
||||||
"align_parameters": false,
|
"align_parameters": true,
|
||||||
"allowed_object_naming": true,
|
"allowed_object_naming": true,
|
||||||
"allowed_object_types": true,
|
"allowed_object_types": true,
|
||||||
"ambiguous_statement": true,
|
"ambiguous_statement": true,
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
"classic_exceptions_overlap": true,
|
"classic_exceptions_overlap": true,
|
||||||
"cloud_types": true,
|
"cloud_types": true,
|
||||||
"colon_missing_space": true,
|
"colon_missing_space": true,
|
||||||
"commented_code": false,
|
"commented_code": true,
|
||||||
"constant_classes": {
|
"constant_classes": {
|
||||||
"exclude": [],
|
"exclude": [],
|
||||||
"severity": "Error",
|
"severity": "Error",
|
||||||
|
@ -63,13 +63,13 @@
|
||||||
"severity": "Error",
|
"severity": "Error",
|
||||||
"max": 20
|
"max": 20
|
||||||
},
|
},
|
||||||
"dangerous_statement": false,
|
"dangerous_statement": true,
|
||||||
"db_operation_in_loop": true,
|
"db_operation_in_loop": true,
|
||||||
"definitions_top": false,
|
"definitions_top": false,
|
||||||
"description_empty": true,
|
"description_empty": true,
|
||||||
"double_space": true,
|
"double_space": true,
|
||||||
"downport": true,
|
"downport": true,
|
||||||
"empty_line_in_statement": false,
|
"empty_line_in_statement": true,
|
||||||
"empty_statement": true,
|
"empty_statement": true,
|
||||||
"empty_structure": {
|
"empty_structure": {
|
||||||
"loop": true,
|
"loop": true,
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
},
|
},
|
||||||
"global_class": true,
|
"global_class": true,
|
||||||
"identical_conditions": true,
|
"identical_conditions": true,
|
||||||
"identical_contents": false,
|
"identical_contents": true,
|
||||||
"identical_descriptions": true,
|
"identical_descriptions": true,
|
||||||
"identical_form_names": true,
|
"identical_form_names": true,
|
||||||
"if_in_if": true,
|
"if_in_if": true,
|
||||||
|
@ -114,12 +114,12 @@
|
||||||
"indentation": false,
|
"indentation": false,
|
||||||
"inline_data_old_versions": true,
|
"inline_data_old_versions": true,
|
||||||
"intf_referencing_clas": true,
|
"intf_referencing_clas": true,
|
||||||
"keep_single_parameter_on_one_line": false,
|
"keep_single_parameter_on_one_line": true,
|
||||||
"keyword_case": false,
|
"keyword_case": false,
|
||||||
"line_break_multiple_parameters": false,
|
"line_break_multiple_parameters": false,
|
||||||
"line_break_style": false,
|
"line_break_style": true,
|
||||||
"line_length": false,
|
"line_length": false,
|
||||||
"line_only_punc": false,
|
"line_only_punc": true,
|
||||||
"local_class_naming": false,
|
"local_class_naming": false,
|
||||||
"local_testclass_consistency": true,
|
"local_testclass_consistency": true,
|
||||||
"local_variable_names": false,
|
"local_variable_names": false,
|
||||||
|
|
|
@ -56,7 +56,7 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION.
|
||||||
r_result = `<html>` && |\n| &&
|
r_result = `<html>` && |\n| &&
|
||||||
`<head>` && |\n| &&
|
`<head>` && |\n| &&
|
||||||
lv_sec_policy && |\n| &&
|
lv_sec_policy && |\n| &&
|
||||||
` <meta charset="UTF-8">` && |\n| &&
|
` <meta charset="UTF-8">` && |\n| &&
|
||||||
` <meta name="viewport" content="width=device-width, initial-scale=1.0">` && |\n| &&
|
` <meta name="viewport" content="width=device-width, initial-scale=1.0">` && |\n| &&
|
||||||
` <meta http-equiv="X-UA-Compatible" content="IE=edge">` && |\n| &&
|
` <meta http-equiv="X-UA-Compatible" content="IE=edge">` && |\n| &&
|
||||||
` <title>abap2UI5</title>` && |\n| &&
|
` <title>abap2UI5</title>` && |\n| &&
|
||||||
|
@ -77,207 +77,206 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION.
|
||||||
` <div id="content" data-handle-validation="true" ></div>` && |\n| &&
|
` <div id="content" data-handle-validation="true" ></div>` && |\n| &&
|
||||||
`</body>` && |\n| &&
|
`</body>` && |\n| &&
|
||||||
`</html>` && |\n|.
|
`</html>` && |\n|.
|
||||||
r_result = r_result && `<abc/><script id="z2ui5">` && |\n| &&
|
r_result = r_result && `<abc/><script id="z2ui5">` && |\n| &&
|
||||||
` sap.ui.getCore().attachInit(function () {` && |\n| &&
|
` sap.ui.getCore().attachInit(function () {` && |\n| &&
|
||||||
` "use strict";` && |\n| &&
|
` "use strict";` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` sap.ui.controller("z2ui5_controller", {` && |\n| &&
|
` sap.ui.controller("z2ui5_controller", {` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` onAfterRendering: function () {` && |\n| &&
|
` onAfterRendering: function () {` && |\n| &&
|
||||||
` sap.z2ui5.onAfter();` && |\n| &&
|
` sap.z2ui5.onAfter();` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` onEventFrontend: function (vAction) {` && |\n| &&
|
` onEventFrontend: function (vAction) {` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (vAction == 'POPUP_CLOSE') {` && |\n| &&
|
` if (vAction == 'POPUP_CLOSE') {` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.oViewPopup.close) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.oViewPopup.close) {` && |\n| &&
|
||||||
` sap.z2ui5.oResponse.oViewPopup.close();` && |\n| &&
|
` sap.z2ui5.oResponse.oViewPopup.close();` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` sap.z2ui5.oResponse.oViewPopup.destroy();` && |\n| &&
|
` sap.z2ui5.oResponse.oViewPopup.destroy();` && |\n| &&
|
||||||
` delete sap.z2ui5.oResponse.oViewPopup;` && |\n| &&
|
` delete sap.z2ui5.oResponse.oViewPopup;` && |\n| &&
|
||||||
` delete sap.z2ui5.oResponse.oSystem.VIEW_POPUP;` && |\n| &&
|
` delete sap.z2ui5.oResponse.oSystem.VIEW_POPUP;` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` onEvent: function (oEvent) {` && |\n| &&
|
` onEvent: function (oEvent) {` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (!window.navigator.onLine) {` && |\n| &&
|
` if (!window.navigator.onLine) {` && |\n| &&
|
||||||
` sap.m.MessageBox.alert('No internet connection! Please reconnect to the server and try again.');` && |\n| &&
|
` sap.m.MessageBox.alert('No internet connection! Please reconnect to the server and try again.');` && |\n| &&
|
||||||
` return;` && |\n| &&
|
` return;` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` sap.ui.core.BusyIndicator.show();` && |\n| &&
|
` sap.ui.core.BusyIndicator.show();` && |\n| &&
|
||||||
` this.oBody = {};` && |\n| &&
|
` this.oBody = {};` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (sap.z2ui5.oResponse.oViewPopup) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.oViewPopup) {` && |\n| &&
|
||||||
` this.oBody.oUpdate = sap.z2ui5.oResponse.oViewPopup.getModel().oData.oUpdate;` && |\n| &&
|
` this.oBody.oUpdate = sap.z2ui5.oResponse.oViewPopup.getModel().oData.oUpdate;` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.oViewPopup.close) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.oViewPopup.close) {` && |\n| &&
|
||||||
` sap.z2ui5.oResponse.oViewPopup.close();` && |\n| &&
|
` sap.z2ui5.oResponse.oViewPopup.close();` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` sap.z2ui5.oResponse.oViewPopup.destroy();` && |\n| &&
|
` sap.z2ui5.oResponse.oViewPopup.destroy();` && |\n| &&
|
||||||
` } else {` && |\n| &&
|
` } else {` && |\n| &&
|
||||||
` this.oBody.oUpdate = sap.z2ui5.oView.getModel().oData.oUpdate;` && |\n| &&
|
` this.oBody.oUpdate = sap.z2ui5.oView.getModel().oData.oUpdate;` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.T_SCROLL) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.T_SCROLL) {` && |\n| &&
|
||||||
` this.oBody.oScroll = sap.z2ui5.oResponse.PARAMS.T_SCROLL;` && |\n| &&
|
` this.oBody.oScroll = sap.z2ui5.oResponse.PARAMS.T_SCROLL;` && |\n| &&
|
||||||
` this.oBody.oScroll.forEach(item => {` && |\n| &&
|
` this.oBody.oScroll.forEach(item => {` && |\n| &&
|
||||||
` try {` && |\n| &&
|
` try {` && |\n| &&
|
||||||
` item.VALUE = this.getView().byId(item.NAME).getScrollDelegate().getScrollTop();` && |\n| &&
|
` item.VALUE = this.getView().byId(item.NAME).getScrollDelegate().getScrollTop();` && |\n| &&
|
||||||
` } catch (e) {` && |\n| &&
|
` } catch (e) {` && |\n| &&
|
||||||
` try { ` && |\n| &&
|
` try { ` && |\n| &&
|
||||||
` var ele = '#' + this.getView().byId(item.NAME).getId() + '-inner';` && |\n| &&
|
` var ele = '#' + this.getView().byId(item.NAME).getId() + '-inner';` && |\n| &&
|
||||||
` item.VALUE = $(ele).scrollTop();` && |\n| &&
|
` item.VALUE = $(ele).scrollTop();` && |\n| &&
|
||||||
` } catch (e) { }` && |\n| &&
|
` } catch (e) { }` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` });` && |\n| &&
|
` });` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` this.oBody.ID = sap.z2ui5.oResponse.ID;` && |\n| &&
|
` this.oBody.ID = sap.z2ui5.oResponse.ID;` && |\n| &&
|
||||||
` this.oBody.ARGUMENTS = arguments;` && |\n| &&
|
` this.oBody.ARGUMENTS = arguments;` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (sap.z2ui5.checkLogActive) {` && |\n| &&
|
` if (sap.z2ui5.checkLogActive) {` && |\n| &&
|
||||||
` console.log('Request Object:');` && |\n| &&
|
` console.log('Request Object:');` && |\n| &&
|
||||||
` console.log(this.oBody);` && |\n| &&
|
` console.log(this.oBody);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` sap.z2ui5.oResponseOld = sap.z2ui5.oResponse;` && |\n| &&
|
` sap.z2ui5.oResponseOld = sap.z2ui5.oResponse;` && |\n| &&
|
||||||
` sap.z2ui5.oResponse = {};` && |\n| &&
|
` sap.z2ui5.oResponse = {};` && |\n| &&
|
||||||
` sap.z2ui5.oBody = this.oBody;` && |\n| &&
|
` sap.z2ui5.oBody = this.oBody;` && |\n| &&
|
||||||
` sap.z2ui5.Roundtrip(oEvent.isHoldView);` && |\n| &&
|
` sap.z2ui5.Roundtrip(oEvent.isHoldView);` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` Roundtrip: function (isHoldView) {` && |\n| &&
|
` Roundtrip: function (isHoldView) {` && |\n| &&
|
||||||
` sap.z2ui5.checkTimerActive = false;` && |\n| &&
|
` sap.z2ui5.checkTimerActive = false;` && |\n| &&
|
||||||
` if (sap.z2ui5.oView ) { if (!isHoldView ) {` && |\n| &&
|
` if (sap.z2ui5.oView ) { if (!isHoldView ) {` && |\n| &&
|
||||||
` sap.z2ui5.oView.destroy();` && |\n| &&
|
` sap.z2ui5.oView.destroy();` && |\n| &&
|
||||||
` } }` && |\n| &&
|
` } }` && |\n| &&
|
||||||
` var xhr = new XMLHttpRequest();` && |\n| &&
|
` var xhr = new XMLHttpRequest();` && |\n| &&
|
||||||
` xhr.open("POST", sap.z2ui5.pathname , true);` && |\n| &&
|
` xhr.open("POST", sap.z2ui5.pathname , true);` && |\n| &&
|
||||||
` xhr.onload = function (that) {` && |\n| &&
|
` xhr.onload = function (that) {` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (that.target.status !== 200) {` && |\n| &&
|
` if (that.target.status !== 200) {` && |\n| &&
|
||||||
` document.write(that.target.response);` && |\n| &&
|
` document.write(that.target.response);` && |\n| &&
|
||||||
` return;` && |\n| &&
|
` return;` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` sap.z2ui5.oResponse = JSON.parse(that.target.response);` && |\n| &&
|
` sap.z2ui5.oResponse = JSON.parse(that.target.response);` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (sap.z2ui5.checkLogActive) {` && |\n| &&
|
` if (sap.z2ui5.checkLogActive) {` && |\n| &&
|
||||||
` console.log('Response Object:');` && |\n| &&
|
` console.log('Response Object:');` && |\n| &&
|
||||||
` console.log(sap.z2ui5.oResponse);` && |\n| &&
|
` console.log(sap.z2ui5.oResponse);` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.XML_VIEW !== '' ) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.XML_VIEW !== '' ) {` && |\n| &&
|
||||||
` console.log('UI5-XML-View:');` && |\n| &&
|
` console.log('UI5-XML-View:');` && |\n| &&
|
||||||
` console.log(sap.z2ui5.oResponse.PARAMS.XML_MAIN);` && |\n| &&
|
` console.log(sap.z2ui5.oResponse.PARAMS.XML_MAIN);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.XML_POPUP !== '' ) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.XML_POPUP !== '' ) {` && |\n| &&
|
||||||
` console.log('UI5-XML-Popup:');` && |\n| &&
|
` console.log('UI5-XML-Popup:');` && |\n| &&
|
||||||
` console.log(sap.z2ui5.oResponse.PARAMS.XML_POPUP);` && |\n| &&
|
` console.log(sap.z2ui5.oResponse.PARAMS.XML_POPUP);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.S_MSG.CONTROL !== '' ) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.S_MSG.CONTROL !== '' ) {` && |\n| &&
|
||||||
` sap.m[sap.z2ui5.oResponse.S_MSG.CONTROL][sap.z2ui5.oResponse.S_MSG.TYPE](sap.z2ui5.oResponse.S_MSG.TEXT);` && |\n| &&
|
` sap.m[sap.z2ui5.oResponse.S_MSG.CONTROL][sap.z2ui5.oResponse.S_MSG.TYPE](sap.z2ui5.oResponse.S_MSG.TEXT);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (!sap.z2ui5.oResponse.PARAMS.XML_MAIN) {` && |\n| &&
|
` if (!sap.z2ui5.oResponse.PARAMS.XML_MAIN) {` && |\n| &&
|
||||||
` sap.z2ui5.onAfter();` && |\n| &&
|
` sap.z2ui5.onAfter();` && |\n| &&
|
||||||
` return;` && |\n| &&
|
` return;` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` var oModel = new sap.ui.model.json.JSONModel(sap.z2ui5.oResponse.OVIEWMODEL);` && |\n| &&
|
` var oModel = new sap.ui.model.json.JSONModel(sap.z2ui5.oResponse.OVIEWMODEL);` && |\n| &&
|
||||||
` var oView = new sap.ui.core.mvc.XMLView.create({` && |\n| &&
|
` var oView = new sap.ui.core.mvc.XMLView.create({` && |\n| &&
|
||||||
` definition: sap.z2ui5.oResponse.PARAMS.XML_MAIN,` && |\n| &&
|
` definition: sap.z2ui5.oResponse.PARAMS.XML_MAIN,` && |\n| &&
|
||||||
` }).then(oView => {` && |\n| &&
|
` }).then(oView => {` && |\n| &&
|
||||||
` oView.setModel(oModel);` && |\n| &&
|
` oView.setModel(oModel);` && |\n| &&
|
||||||
` if (sap.z2ui5.oParent) { ` && |\n| &&
|
` if (sap.z2ui5.oParent) { ` && |\n| &&
|
||||||
` sap.z2ui5.oParent.removeAllPages(); ` && |\n| &&
|
` sap.z2ui5.oParent.removeAllPages(); ` && |\n| &&
|
||||||
` sap.z2ui5.oParent.insertPage( oView ); ` && |\n| &&
|
` sap.z2ui5.oParent.insertPage( oView ); ` && |\n| &&
|
||||||
` }else{` && |\n| &&
|
` }else{` && |\n| &&
|
||||||
` oView.placeAt("content")};` && |\n| &&
|
` oView.placeAt("content")};` && |\n| &&
|
||||||
` sap.z2ui5.oView = oView;` && |\n| &&
|
` sap.z2ui5.oView = oView;` && |\n| &&
|
||||||
` });` && |\n| &&
|
` });` && |\n| &&
|
||||||
` }.bind(this);` && |\n| &&
|
` }.bind(this);` && |\n| &&
|
||||||
` xhr.send(JSON.stringify(sap.z2ui5.oBody));` && |\n| &&
|
` xhr.send(JSON.stringify(sap.z2ui5.oBody));` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` });` && |\n| &&
|
` });` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` if (!sap.z2ui5) {` && |\n| &&
|
` if (!sap.z2ui5) {` && |\n| &&
|
||||||
` sap.z2ui5 = {};` && |\n| &&
|
` sap.z2ui5 = {};` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` if (!sap.z2ui5.pathname){ sap.z2ui5.pathname = window.location.pathname; }` && |\n| &&
|
` if (!sap.z2ui5.pathname){ sap.z2ui5.pathname = window.location.pathname; }` && |\n| &&
|
||||||
` debugger;` && |\n| &&
|
` debugger;` && |\n| &&
|
||||||
` var xml = atob('PA==') + 'mvc:View controllerName="z2ui5_controller" xmlns:mvc="sap.ui.core.mvc" /' + atob('Pg==');` && |\n| &&
|
` var xml = atob('PA==') + 'mvc:View controllerName="z2ui5_controller" xmlns:mvc="sap.ui.core.mvc" /' + atob('Pg==');` && |\n| &&
|
||||||
` jQuery.sap.require("sap.ui.core.Fragment");` && |\n| &&
|
` jQuery.sap.require("sap.ui.core.Fragment");` && |\n| &&
|
||||||
` jQuery.sap.require("sap.m.MessageToast");` && |\n| &&
|
` jQuery.sap.require("sap.m.MessageToast");` && |\n| &&
|
||||||
` jQuery.sap.require("sap.m.MessageBox");` && |\n| &&
|
` jQuery.sap.require("sap.m.MessageBox");` && |\n| &&
|
||||||
` jQuery.sap.require("sap.ui.model.json.JSONModel");` && |\n| &&
|
` jQuery.sap.require("sap.ui.model.json.JSONModel");` && |\n| &&
|
||||||
` var oView = sap.ui.xmlview({ viewContent: xml });` && |\n| &&
|
` var oView = sap.ui.xmlview({ viewContent: xml });` && |\n| &&
|
||||||
` sap.z2ui5.Roundtrip = oView.getController().Roundtrip;` && |\n| &&
|
` sap.z2ui5.Roundtrip = oView.getController().Roundtrip;` && |\n| &&
|
||||||
` sap.z2ui5.oController = oView.getController();` && |\n| &&
|
` sap.z2ui5.oController = oView.getController();` && |\n| &&
|
||||||
` sap.z2ui5.Roundtrip(false);` && |\n| &&
|
` sap.z2ui5.Roundtrip(false);` && |\n| &&
|
||||||
` sap.z2ui5.onAfter = () => {` && |\n| &&
|
` sap.z2ui5.onAfter = () => {` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.TITLE != "") {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.TITLE != "") {` && |\n| &&
|
||||||
` document.title = sap.z2ui5.oResponse.PARAMS.TITLE;` && |\n| &&
|
` document.title = sap.z2ui5.oResponse.PARAMS.TITLE;` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.PATH != "") {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.PATH != "") {` && |\n| &&
|
||||||
` window.history.replaceState("", "", window.location.origin + sap.z2ui5.oResponse.PARAMS.PATH + window.location.search);` && |\n| &&
|
` window.history.replaceState("", "", window.location.origin + sap.z2ui5.oResponse.PARAMS.PATH + window.location.search);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` var oView = sap.z2ui5.oView;` && |\n| &&
|
` var oView = sap.z2ui5.oView;` && |\n| &&
|
||||||
` try {` && |\n| &&
|
` try {` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.S_CURSOR.ID !== '') {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.S_CURSOR.ID !== '') {` && |\n| &&
|
||||||
` var ofocus = oView.byId(sap.z2ui5.oResponse.PARAMS.S_CURSOR.ID).getFocusInfo();` && |\n| &&
|
` var ofocus = oView.byId(sap.z2ui5.oResponse.PARAMS.S_CURSOR.ID).getFocusInfo();` && |\n| &&
|
||||||
` ofocus.cursorPos = parseInt(sap.z2ui5.oResponse.PARAMS.S_CURSOR.CURSORPOS);` && |\n| &&
|
` ofocus.cursorPos = parseInt(sap.z2ui5.oResponse.PARAMS.S_CURSOR.CURSORPOS);` && |\n| &&
|
||||||
` ofocus.selectionStart = parseInt(sap.z2ui5.oResponse.PARAMS.S_CURSOR.SELECTIONSTART);` && |\n| &&
|
` ofocus.selectionStart = parseInt(sap.z2ui5.oResponse.PARAMS.S_CURSOR.SELECTIONSTART);` && |\n| &&
|
||||||
` ofocus.selectionEnd = parseInt(sap.z2ui5.oResponse.PARAMS.S_CURSOR.SELECTIONEND);` && |\n| &&
|
` ofocus.selectionEnd = parseInt(sap.z2ui5.oResponse.PARAMS.S_CURSOR.SELECTIONEND);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` oView.byId(sap.z2ui5.oResponse.PARAMS.S_CURSOR.ID).applyFocusInfo(ofocus);` && |\n| &&
|
` oView.byId(sap.z2ui5.oResponse.PARAMS.S_CURSOR.ID).applyFocusInfo(ofocus);` && |\n| &&
|
||||||
` } catch (error) { }` && |\n| &&
|
` } catch (error) { }` && |\n| &&
|
||||||
` ; try { } catch (error) { }` && |\n| &&
|
` ; try { } catch (error) { }` && |\n| &&
|
||||||
` ; if (sap.z2ui5.oResponse.PARAMS.T_SCROLL) {` && |\n| &&
|
` ; if (sap.z2ui5.oResponse.PARAMS.T_SCROLL) {` && |\n| &&
|
||||||
` sap.z2ui5.oResponse.PARAMS.T_SCROLL.forEach(item => {` && |\n| &&
|
` sap.z2ui5.oResponse.PARAMS.T_SCROLL.forEach(item => {` && |\n| &&
|
||||||
` try {` && |\n| &&
|
` try {` && |\n| &&
|
||||||
` oView.byId(item.NAME).scrollTo(parseInt(item.VALUE));` && |\n| &&
|
` oView.byId(item.NAME).scrollTo(parseInt(item.VALUE));` && |\n| &&
|
||||||
` } catch (e) {` && |\n| &&
|
` } catch (e) {` && |\n| &&
|
||||||
` try {` && |\n| &&
|
` try {` && |\n| &&
|
||||||
` var ele = '#' + oView.byId(item.NAME).getId() + '-inner';` && |\n| &&
|
` var ele = '#' + oView.byId(item.NAME).getId() + '-inner';` && |\n| &&
|
||||||
` $(ele).scrollTop(item.VALUE);` && |\n| &&
|
` $(ele).scrollTop(item.VALUE);` && |\n| &&
|
||||||
` } catch ( e ) { }` && |\n| &&
|
` } catch ( e ) { }` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` );` && |\n| &&
|
` );` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.XML_POPUP) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.XML_POPUP) {` && |\n| &&
|
||||||
` sap.ui.core.Fragment.load({` && |\n| &&
|
` sap.ui.core.Fragment.load({` && |\n| &&
|
||||||
` definition: sap.z2ui5.oResponse.PARAMS.XML_POPUP,` && |\n| &&
|
` definition: sap.z2ui5.oResponse.PARAMS.XML_POPUP,` && |\n| &&
|
||||||
` controller: sap.z2ui5.oController,` && |\n| &&
|
` controller: sap.z2ui5.oController,` && |\n| &&
|
||||||
` }).then(function (oFragment) {` && |\n| &&
|
` }).then(function (oFragment) {` && |\n| &&
|
||||||
` oFragment.setModel(new sap.ui.model.json.JSONModel(sap.z2ui5.oResponse.OVIEWMODEL.oViewModel))` && |\n| &&
|
` oFragment.setModel(new sap.ui.model.json.JSONModel(sap.z2ui5.oResponse.OVIEWMODEL.oViewModel))` && |\n| &&
|
||||||
` sap.z2ui5.oView.addDependent(oFragment);` && |\n| &&
|
` sap.z2ui5.oView.addDependent(oFragment);` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.POPOVER_OPEN_BY_ID == '' ) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.POPOVER_OPEN_BY_ID == '' ) {` && |\n| &&
|
||||||
` oFragment.open();` && |\n| &&
|
` oFragment.open();` && |\n| &&
|
||||||
` } else {` && |\n| &&
|
` } else {` && |\n| &&
|
||||||
` var oControl = sap.ui.getCore().byId(sap.z2ui5.oResponse.PARAMS.POPOVER_OPEN_BY_ID);` && |\n| &&
|
` var oControl = sap.ui.getCore().byId(sap.z2ui5.oResponse.PARAMS.POPOVER_OPEN_BY_ID);` && |\n| &&
|
||||||
` if (oControl === undefined) {` && |\n| &&
|
` if (oControl === undefined) {` && |\n| &&
|
||||||
` oControl = sap.z2ui5.oView.byId(sap.z2ui5.oResponse.PARAMS.POPOVER_OPEN_BY_ID);` && |\n| &&
|
` oControl = sap.z2ui5.oView.byId(sap.z2ui5.oResponse.PARAMS.POPOVER_OPEN_BY_ID);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` oFragment.openBy(oControl);` && |\n| &&
|
` oFragment.openBy(oControl);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` sap.z2ui5.oResponse.oViewPopup = oFragment;` && |\n| &&
|
` sap.z2ui5.oResponse.oViewPopup = oFragment;` && |\n| &&
|
||||||
` sap.ui.core.BusyIndicator.hide();` && |\n| &&
|
` sap.ui.core.BusyIndicator.hide();` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` .bind(this));` && |\n| &&
|
` .bind(this));` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` if (sap.z2ui5.oResponse.PARAMS.S_TIMER.INTERVAL_MS !== '' ) {` && |\n| &&
|
` if (sap.z2ui5.oResponse.PARAMS.S_TIMER.INTERVAL_MS !== '' ) {` && |\n| &&
|
||||||
` var oEvent = { 'EVENT': 'BUTTON_CHECK', 'METHOD': 'UPDATE' };` && |\n| &&
|
` var oEvent = { 'EVENT': 'BUTTON_CHECK', 'METHOD': 'UPDATE' };` && |\n| &&
|
||||||
` oEvent.EVENT = sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED;` && |\n| &&
|
` oEvent.EVENT = sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED;` && |\n| &&
|
||||||
` sap.z2ui5.checkTimerActive = true;` && |\n| &&
|
` sap.z2ui5.checkTimerActive = true;` && |\n| &&
|
||||||
` setTimeout(() => {` && |\n| &&
|
` setTimeout(() => {` && |\n| &&
|
||||||
` if (sap.z2ui5.checkTimerActive) {` && |\n| &&
|
` if (sap.z2ui5.checkTimerActive) {` && |\n| &&
|
||||||
` sap.z2ui5.oView.getController().onEvent(oEvent);` && |\n| &&
|
` sap.z2ui5.oView.getController().onEvent(oEvent);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` }, parseInt(sap.z2ui5.oResponse.PARAMS.S_TIMER.INTERVAL_MS), oEvent);` && |\n| &&
|
` }, parseInt(sap.z2ui5.oResponse.PARAMS.S_TIMER.INTERVAL_MS), oEvent);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` sap.ui.core.BusyIndicator.hide();` && |\n| &&
|
` sap.ui.core.BusyIndicator.hide();` && |\n| &&
|
||||||
` };` &&
|
` };` &&
|
||||||
|
` sap.z2ui5.checkLogActive = ` && z2ui5_lcl_utility=>get_json_boolean( check_logging ) && `;` && |\n| &&
|
||||||
` sap.z2ui5.checkLogActive = ` && z2ui5_lcl_utility=>get_json_boolean( check_logging ) && `;` && |\n| &&
|
` });` && |\n| &&
|
||||||
` });` && |\n| &&
|
`</script><abc/>` && |\n| &&
|
||||||
`</script><abc/>` && |\n| &&
|
|
||||||
`</html>`.
|
`</html>`.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
|
@ -208,7 +208,7 @@ CLASS z2ui5_lcl_utility IMPLEMENTATION.
|
||||||
DELETE lt_attri WHERE visibility <> cl_abap_classdescr=>public.
|
DELETE lt_attri WHERE visibility <> cl_abap_classdescr=>public.
|
||||||
|
|
||||||
LOOP AT lt_attri INTO DATA(ls_attri)
|
LOOP AT lt_attri INTO DATA(ls_attri)
|
||||||
WHERE type_kind = cl_abap_classdescr=>typekind_struct2
|
WHERE type_kind = cl_abap_classdescr=>typekind_struct2
|
||||||
OR type_kind = cl_abap_classdescr=>typekind_struct1.
|
OR type_kind = cl_abap_classdescr=>typekind_struct1.
|
||||||
|
|
||||||
DELETE lt_attri INDEX sy-tabix.
|
DELETE lt_attri INDEX sy-tabix.
|
||||||
|
@ -809,10 +809,10 @@ CLASS z2ui5_lcl_fw_app IMPLEMENTATION.
|
||||||
DATA(lv_xml_error) = `<mvc:View controllerName="z2ui5_controller" displayBlock="true" height="100%" xmlns:core="sap.ui.core" xmlns:l="sap.ui.layout" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:f="sap.ui.layout.form" xmlns:mvc="sap.ui.core.mv` &&
|
DATA(lv_xml_error) = `<mvc:View controllerName="z2ui5_controller" displayBlock="true" height="100%" xmlns:core="sap.ui.core" xmlns:l="sap.ui.layout" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:f="sap.ui.layout.form" xmlns:mvc="sap.ui.core.mv` &&
|
||||||
`c" xmlns:editor="sap.ui.codeeditor" xmlns:ui="sap.ui.table" xmlns="sap.m" xmlns:uxap="sap.uxap" xmlns:mchart="sap.suite.ui.microchart" xmlns:z2ui5="z2ui5" xmlns:webc="sap.ui.webc.main" xmlns:text="sap.ui.richtexteditor" > <Shell> <MessagePage ` && |\n|
|
`c" xmlns:editor="sap.ui.codeeditor" xmlns:ui="sap.ui.table" xmlns="sap.m" xmlns:uxap="sap.uxap" xmlns:mchart="sap.suite.ui.microchart" xmlns:z2ui5="z2ui5" xmlns:webc="sap.ui.webc.main" xmlns:text="sap.ui.richtexteditor" > <Shell> <MessagePage ` && |\n|
|
||||||
&&
|
&&
|
||||||
` description="` && lv_descr && `" ` && |\n| &&
|
` description="` && lv_descr && `" ` && |\n| &&
|
||||||
` icon="sap-icon://message-error" ` && |\n| &&
|
` icon="sap-icon://message-error" ` && |\n| &&
|
||||||
` text="500 Internal Server Error" ` && |\n| &&
|
` text="500 Internal Server Error" ` && |\n| &&
|
||||||
` enableFormattedText="true" ` && |\n| &&
|
` enableFormattedText="true" ` && |\n| &&
|
||||||
` > <buttons ` && |\n| &&
|
` > <buttons ` && |\n| &&
|
||||||
` > <Button ` && |\n| &&
|
` > <Button ` && |\n| &&
|
||||||
` press="` && client->_event( `BUTTON_HOME` ) && `" ` && |\n| &&
|
` press="` && client->_event( `BUTTON_HOME` ) && `" ` && |\n| &&
|
||||||
|
@ -845,52 +845,52 @@ CLASS z2ui5_lcl_fw_app IMPLEMENTATION.
|
||||||
`" xmlns:editor="sap.ui.codeeditor" xmlns:ui="sap.ui.table" xmlns="sap.m" xmlns:uxap="sap.uxap" xmlns:mchart="sap.suite.ui.microchart" xmlns:z2ui5="z2ui5" xmlns:webc="sap.ui.webc.main" xmlns:text="sap.ui.richtexteditor" > <Shell> <Page ` && |\n| &&
|
`" xmlns:editor="sap.ui.codeeditor" xmlns:ui="sap.ui.table" xmlns="sap.m" xmlns:uxap="sap.uxap" xmlns:mchart="sap.suite.ui.microchart" xmlns:z2ui5="z2ui5" xmlns:webc="sap.ui.webc.main" xmlns:text="sap.ui.richtexteditor" > <Shell> <Page ` && |\n| &&
|
||||||
` showNavButton="false" ` && |\n| &&
|
` showNavButton="false" ` && |\n| &&
|
||||||
` class="sapUiContentPadding sapUiResponsivePadding--subHeader sapUiResponsivePadding--content sapUiResponsivePadding--footer" ` && |\n| &&
|
` class="sapUiContentPadding sapUiResponsivePadding--subHeader sapUiResponsivePadding--content sapUiResponsivePadding--footer" ` && |\n| &&
|
||||||
` > <headerContent ` && |\n| &&
|
` > <headerContent ` && |\n| &&
|
||||||
` > <Title ` && |\n| &&
|
` > <Title ` && |\n| &&
|
||||||
` /> <Title ` && |\n| &&
|
` /> <Title ` && |\n| &&
|
||||||
` text="abap2UI5 - Developing UI5 Apps in pure ABAP" ` && |\n| &&
|
` text="abap2UI5 - Developing UI5 Apps in pure ABAP" ` && |\n| &&
|
||||||
` /> <ToolbarSpacer ` && |\n| &&
|
` /> <ToolbarSpacer ` && |\n| &&
|
||||||
` /> <Link ` && |\n| &&
|
` /> <Link ` && |\n| &&
|
||||||
` text="SCN" ` && |\n| &&
|
` text="SCN" ` && |\n| &&
|
||||||
` target="_blank" ` && |\n| &&
|
` target="_blank" ` && |\n| &&
|
||||||
` href="https://blogs.sap.com/tag/abap2ui5/" ` && |\n| &&
|
` href="https://blogs.sap.com/tag/abap2ui5/" ` && |\n| &&
|
||||||
` /> <Link ` && |\n| &&
|
` /> <Link ` && |\n| &&
|
||||||
` text="Twitter" ` && |\n| &&
|
` text="Twitter" ` && |\n| &&
|
||||||
` target="_blank" ` && |\n| &&
|
` target="_blank" ` && |\n| &&
|
||||||
` href="https://twitter.com/OblomovDev" ` && |\n| &&
|
` href="https://twitter.com/OblomovDev" ` && |\n| &&
|
||||||
` /> <Link ` && |\n| &&
|
` /> <Link ` && |\n| &&
|
||||||
` text="GitHub" ` && |\n| &&
|
` text="GitHub" ` && |\n| &&
|
||||||
` target="_blank" ` && |\n| &&
|
` target="_blank" ` && |\n| &&
|
||||||
` href="https://github.com/oblomov-dev/abap2ui5" ` && |\n| &&
|
` href="https://github.com/oblomov-dev/abap2ui5" ` && |\n| &&
|
||||||
` /></headerContent>`.
|
` /></headerContent>`.
|
||||||
|
|
||||||
lv_xml_main = lv_xml_main && ` <l:Grid ` && |\n| &&
|
lv_xml_main = lv_xml_main && ` <l:Grid ` && |\n| &&
|
||||||
` defaultSpan="XL7 L7 M12 S12" ` && |\n| &&
|
` defaultSpan="XL7 L7 M12 S12" ` && |\n| &&
|
||||||
` > <l:content ` && |\n| &&
|
` > <l:content ` && |\n| &&
|
||||||
` > <f:SimpleForm ` && |\n| &&
|
` > <f:SimpleForm ` && |\n| &&
|
||||||
` title="Quick Start" ` && |\n| &&
|
` title="Quick Start" ` && |\n| &&
|
||||||
` layout="ResponsiveGridLayout" ` && |\n| &&
|
` layout="ResponsiveGridLayout" ` && |\n| &&
|
||||||
` editable="true" ` && |\n| &&
|
` editable="true" ` && |\n| &&
|
||||||
` > <f:content ` && |\n| &&
|
` > <f:content ` && |\n| &&
|
||||||
` > <Label ` && |\n| &&
|
` > <Label ` && |\n| &&
|
||||||
` text="Step 1" ` && |\n| &&
|
` text="Step 1" ` && |\n| &&
|
||||||
` /> <Text ` && |\n| &&
|
` /> <Text ` && |\n| &&
|
||||||
` text="Create a global class in your abap system" ` && |\n| &&
|
` text="Create a global class in your abap system" ` && |\n| &&
|
||||||
` /> <Label ` && |\n| &&
|
` /> <Label ` && |\n| &&
|
||||||
` text="Step 2" ` && |\n| &&
|
` text="Step 2" ` && |\n| &&
|
||||||
` /> <Text ` && |\n| &&
|
` /> <Text ` && |\n| &&
|
||||||
` text="Add the interface: Z2UI5_IF_APP" ` && |\n| &&
|
` text="Add the interface: Z2UI5_IF_APP" ` && |\n| &&
|
||||||
` /> <Label ` && |\n| &&
|
` /> <Label ` && |\n| &&
|
||||||
` text="Step 3" ` && |\n| &&
|
` text="Step 3" ` && |\n| &&
|
||||||
` /> <Text ` && |\n| &&
|
` /> <Text ` && |\n| &&
|
||||||
" TODO: check spelling: behaviour (BE) -> behavior (ABAP cleaner)
|
" TODO: check spelling: behaviour (BE) -> behavior (ABAP cleaner)
|
||||||
` text="Define view, implement behaviour" ` && |\n| &&
|
` text="Define view, implement behaviour" ` && |\n| &&
|
||||||
` /> <Link ` && |\n| &&
|
` /> <Link ` && |\n| &&
|
||||||
` text="(Example)" ` && |\n| &&
|
` text="(Example)" ` && |\n| &&
|
||||||
` target="_blank" ` && |\n| &&
|
` target="_blank" ` && |\n| &&
|
||||||
` href="https://github.com/oblomov-dev/ABAP2UI5/blob/main/src/z2ui5_cl_app_hello_world.clas.abap" ` && |\n| &&
|
` href="https://github.com/oblomov-dev/ABAP2UI5/blob/main/src/z2ui5_cl_app_hello_world.clas.abap" ` && |\n| &&
|
||||||
` /> <Label ` && |\n| &&
|
` /> <Label ` && |\n| &&
|
||||||
` text="Step 4" ` && |\n| &&
|
` text="Step 4" ` && |\n| &&
|
||||||
` /> `.
|
` /> `.
|
||||||
|
|
||||||
IF ms_home-class_editable = abap_true.
|
IF ms_home-class_editable = abap_true.
|
||||||
|
@ -909,9 +909,9 @@ CLASS z2ui5_lcl_fw_app IMPLEMENTATION.
|
||||||
` press="` && client->_event( ms_home-btn_event_id ) && `" ` && |\n| &&
|
` press="` && client->_event( ms_home-btn_event_id ) && `" ` && |\n| &&
|
||||||
` text="` && ms_home-btn_text && `" ` && |\n| &&
|
` text="` && ms_home-btn_text && `" ` && |\n| &&
|
||||||
` icon="` && ms_home-btn_icon && `" ` && |\n| &&
|
` icon="` && ms_home-btn_icon && `" ` && |\n| &&
|
||||||
` /> <Label ` && |\n| &&
|
` /> <Label ` && |\n| &&
|
||||||
` text="Step 5" ` && |\n| &&
|
` text="Step 5" ` && |\n| &&
|
||||||
` /> <Link ` && |\n| &&
|
` /> <Link ` && |\n| &&
|
||||||
` text="Link to the Application" ` && |\n| &&
|
` text="Link to the Application" ` && |\n| &&
|
||||||
` target="_blank" ` && |\n| &&
|
` target="_blank" ` && |\n| &&
|
||||||
` href="` && escape( val = lv_link format = cl_abap_format=>e_xml_attr ) && `" ` && |\n| &&
|
` href="` && escape( val = lv_link format = cl_abap_format=>e_xml_attr ) && `" ` && |\n| &&
|
||||||
|
@ -919,7 +919,7 @@ CLASS z2ui5_lcl_fw_app IMPLEMENTATION.
|
||||||
` /></f:content></f:SimpleForm>`.
|
` /></f:content></f:SimpleForm>`.
|
||||||
|
|
||||||
lv_xml_main = lv_xml_main && `<f:SimpleForm ` && |\n| &&
|
lv_xml_main = lv_xml_main && `<f:SimpleForm ` && |\n| &&
|
||||||
` title="Demo Section" ` && |\n| &&
|
` title="Demo Section" ` && |\n| &&
|
||||||
` layout="ResponsiveGridLayout" ` && |\n| &&
|
` layout="ResponsiveGridLayout" ` && |\n| &&
|
||||||
` >`.
|
` >`.
|
||||||
|
|
||||||
|
@ -1052,7 +1052,7 @@ CLASS z2ui5_lcl_fw_handler IMPLEMENTATION.
|
||||||
DATA(lv_viewmodel) = COND #( WHEN ms_next-s_set-_viewmodel IS NOT INITIAL
|
DATA(lv_viewmodel) = COND #( WHEN ms_next-s_set-_viewmodel IS NOT INITIAL
|
||||||
THEN ms_next-s_set-_viewmodel
|
THEN ms_next-s_set-_viewmodel
|
||||||
ELSE bind_back_2_front( lo_app = ms_db-o_app t_attri = ms_db-t_attri ) ).
|
ELSE bind_back_2_front( lo_app = ms_db-o_app t_attri = ms_db-t_attri ) ).
|
||||||
lo_resp->add_attribute( n = `OVIEWMODEL` v = lv_viewmodel apos_active = abap_false ).
|
lo_resp->add_attribute( n = `OVIEWMODEL` v = lv_viewmodel apos_active = abap_false ).
|
||||||
CLEAR ms_next-s_set-_viewmodel.
|
CLEAR ms_next-s_set-_viewmodel.
|
||||||
|
|
||||||
lo_resp->add_attribute( n = `PARAMS` v = z2ui5_lcl_utility=>trans_any_2_json( ms_next-s_set ) apos_active = abap_false ).
|
lo_resp->add_attribute( n = `PARAMS` v = z2ui5_lcl_utility=>trans_any_2_json( ms_next-s_set ) apos_active = abap_false ).
|
||||||
|
@ -1106,7 +1106,7 @@ CLASS z2ui5_lcl_fw_handler IMPLEMENTATION.
|
||||||
CASE lr_attri->type_kind.
|
CASE lr_attri->type_kind.
|
||||||
WHEN 'D' OR 'T'.
|
WHEN 'D' OR 'T'.
|
||||||
/ui2/cl_json=>deserialize( EXPORTING json = `"` && <frontend> && `"`
|
/ui2/cl_json=>deserialize( EXPORTING json = `"` && <frontend> && `"`
|
||||||
CHANGING data = <backend> ).
|
CHANGING data = <backend> ).
|
||||||
WHEN OTHERS.
|
WHEN OTHERS.
|
||||||
<backend> = <frontend>.
|
<backend> = <frontend>.
|
||||||
ENDCASE.
|
ENDCASE.
|
||||||
|
|
|
@ -68,8 +68,7 @@ CLASS ltcl_unit_01_json IMPLEMENTATION.
|
||||||
METHOD test_json_object.
|
METHOD test_json_object.
|
||||||
DATA(lo_tree) = NEW z2ui5_lcl_utility_tree_json( ).
|
DATA(lo_tree) = NEW z2ui5_lcl_utility_tree_json( ).
|
||||||
|
|
||||||
lo_tree->add_attribute_object( `CCC`
|
lo_tree->add_attribute_object( `CCC` )->add_attribute( n = `AAA` v = `BBB` ).
|
||||||
)->add_attribute( n = `AAA` v = `BBB` ).
|
|
||||||
|
|
||||||
DATA(lv_result) = lo_tree->stringify( ).
|
DATA(lv_result) = lo_tree->stringify( ).
|
||||||
IF `{"CCC":{"AAA":"BBB"}}` <> lv_result.
|
IF `{"CCC":{"AAA":"BBB"}}` <> lv_result.
|
||||||
|
@ -88,8 +87,7 @@ CLASS ltcl_unit_01_json IMPLEMENTATION.
|
||||||
|
|
||||||
DATA(ls_test) = VALUE ty_S_test( comp1 = `AAA` comp2 = `BBB` ).
|
DATA(ls_test) = VALUE ty_S_test( comp1 = `AAA` comp2 = `BBB` ).
|
||||||
|
|
||||||
lo_tree->add_attribute_object( `CCC`
|
lo_tree->add_attribute_object( `CCC` )->add_attribute_struc( ls_test ).
|
||||||
)->add_attribute_struc( ls_test ).
|
|
||||||
|
|
||||||
DATA(lv_result) = lo_tree->stringify( ).
|
DATA(lv_result) = lo_tree->stringify( ).
|
||||||
IF `{"CCC":{"COMP1":"AAA","COMP2":"BBB"}}` <> lv_result.
|
IF `{"CCC":{"COMP1":"AAA","COMP2":"BBB"}}` <> lv_result.
|
||||||
|
@ -106,7 +104,7 @@ CLASS ltcl_unit_01_json IMPLEMENTATION.
|
||||||
END OF ty_row.
|
END OF ty_row.
|
||||||
TYPES ty_t_tab TYPE STANDARD TABLE OF ty_row WITH EMPTY KEY.
|
TYPES ty_t_tab TYPE STANDARD TABLE OF ty_row WITH EMPTY KEY.
|
||||||
|
|
||||||
DATA(lt_tab) = VALUE ty_t_tab( ( title = 'Test' value = 'this is a description' selected = abap_true )
|
DATA(lt_tab) = VALUE ty_t_tab( ( title = 'Test' value = 'this is a description' selected = abap_true )
|
||||||
( title = 'Test2' value = 'this is a new descr' selected = abap_false ) ).
|
( title = 'Test2' value = 'this is a new descr' selected = abap_false ) ).
|
||||||
|
|
||||||
DATA(lt_tab2) = VALUE ty_t_tab( ).
|
DATA(lt_tab2) = VALUE ty_t_tab( ).
|
||||||
|
@ -130,7 +128,7 @@ CLASS ltcl_unit_01_json IMPLEMENTATION.
|
||||||
END OF ty_row.
|
END OF ty_row.
|
||||||
TYPES ty_t_tab TYPE STANDARD TABLE OF ty_row WITH EMPTY KEY.
|
TYPES ty_t_tab TYPE STANDARD TABLE OF ty_row WITH EMPTY KEY.
|
||||||
|
|
||||||
DATA(lt_tab) = VALUE ty_t_tab( ( title = 'Test' value = 'this is a description' selected = abap_true )
|
DATA(lt_tab) = VALUE ty_t_tab( ( title = 'Test' value = 'this is a description' selected = abap_true )
|
||||||
( title = 'Test2' value = 'this is a new descr' selected = abap_false ) ).
|
( title = 'Test2' value = 'this is a new descr' selected = abap_false ) ).
|
||||||
|
|
||||||
DATA(lt_tab2) = VALUE ty_t_tab( ).
|
DATA(lt_tab2) = VALUE ty_t_tab( ).
|
||||||
|
@ -153,20 +151,7 @@ ENDCLASS.
|
||||||
|
|
||||||
CLASS ltcl_unit_01_utility IMPLEMENTATION.
|
CLASS ltcl_unit_01_utility IMPLEMENTATION.
|
||||||
METHOD test_util_04_attri_by_ref.
|
METHOD test_util_04_attri_by_ref.
|
||||||
* DATA(lo_app) = NEW ltcl_unit_04_deep_data( ).
|
|
||||||
*
|
|
||||||
* DATA(lt_attri) = z2ui5_lcl_utility=>get_t_attri_by_ref( lo_app ).
|
|
||||||
*
|
|
||||||
* DATA(lt_test) = VALUE z2ui5_lcl_utility=>ty_t_attri(
|
|
||||||
*( name = `Z2UI5_IF_APP~ID` type_kind = `g` type = `STRING` bind_type = `` data_stringify = `` gen_type_kind = `` gen_type = `` gen_kind = `` )
|
|
||||||
*( name = `CHECK_INITIALIZED` type_kind = `C` type = `ABAP_BOOL` bind_type = `` data_stringify = `` gen_type_kind = `` gen_type = `` gen_kind = `` )
|
|
||||||
*( name = `SV_STATUS` type_kind = `g` type = `STRING` bind_type = `` data_stringify = `` gen_type_kind = `` gen_type = `` gen_kind = `` )
|
|
||||||
*( name = `T_TAB` type_kind = `h` type = `` bind_type = `` data_stringify = `` gen_type_kind = `` gen_type = `` gen_kind = `` )
|
|
||||||
* ).
|
|
||||||
*
|
|
||||||
* IF lt_test <> lt_attri.
|
|
||||||
* cl_abap_unit_assert=>fail( msg = 'utility - get t_attri table wrong' quit = 5 ).
|
|
||||||
* ENDIF.
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD test_util_uuid_session.
|
METHOD test_util_uuid_session.
|
||||||
|
@ -273,7 +258,7 @@ CLASS ltcl_unit_02_app_start IMPLEMENTATION.
|
||||||
WHEN 'BUTTON_POST'.
|
WHEN 'BUTTON_POST'.
|
||||||
client->popup_message_toast( |{ product } { quantity } - send to the server| ).
|
client->popup_message_toast( |{ product } { quantity } - send to the server| ).
|
||||||
WHEN 'BACK'.
|
WHEN 'BACK'.
|
||||||
client->nav_app_leave( client->get_app( client->get( )-id_prev_app_stack ) ).
|
client->nav_app_leave( client->get_app( client->get( )-id_prev_app_stack ) ).
|
||||||
ENDCASE.
|
ENDCASE.
|
||||||
|
|
||||||
IF sv_state = 'TEST_MESSAGE_BOX'.
|
IF sv_state = 'TEST_MESSAGE_BOX'.
|
||||||
|
@ -422,10 +407,9 @@ CLASS ltcl_unit_02_app_start IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD test_bind_one_way.
|
METHOD test_bind_one_way.
|
||||||
|
|
||||||
z2ui5_cl_http_handler=>client = VALUE #(
|
z2ui5_cl_http_handler=>client = VALUE #(
|
||||||
t_header = VALUE #( ( name = '~path_info' value = 'LTCL_UNIT_02_APP_START' ) )
|
t_header = VALUE #( ( name = '~path_info' value = 'LTCL_UNIT_02_APP_START' ) ) ).
|
||||||
" t_param = VALUE #( ( name = 'app' value = 'LTCL_UNIT_02_APP_START' ) )
|
|
||||||
).
|
|
||||||
|
|
||||||
sv_state = `TEST_ONE_WAY`.
|
sv_state = `TEST_ONE_WAY`.
|
||||||
DATA(lv_response) = z2ui5_cl_http_handler=>http_post( ).
|
DATA(lv_response) = z2ui5_cl_http_handler=>http_post( ).
|
||||||
|
@ -612,28 +596,9 @@ CLASS ltcl_unit_02_app_start IMPLEMENTATION.
|
||||||
/ui2/cl_json=>deserialize( EXPORTING json = lv_response
|
/ui2/cl_json=>deserialize( EXPORTING json = lv_response
|
||||||
CHANGING data = lo_data ).
|
CHANGING data = lo_data ).
|
||||||
|
|
||||||
" FIELD-SYMBOLS <val> TYPE any.
|
|
||||||
|
|
||||||
* UNASSIGN <val>.
|
|
||||||
* DATA(lv_assign) = `OMESSAGE->CONTROL->*`.
|
|
||||||
* ASSIGN lo_data->(lv_assign) TO <val>.
|
|
||||||
* IF <val> <> `MessageBox`.
|
|
||||||
* cl_abap_unit_assert=>fail( msg = 'message box - control wrong' quit = 5 ).
|
|
||||||
* ENDIF.
|
|
||||||
*
|
|
||||||
* UNASSIGN <val>.
|
|
||||||
* lv_assign = `OMESSAGE->TEXT->*`.
|
|
||||||
* ASSIGN lo_data->(lv_assign) TO <val>.
|
|
||||||
* IF <val> <> `test message box`.
|
|
||||||
* cl_abap_unit_assert=>fail( msg = 'message box - text wrong' quit = 5 ).
|
|
||||||
* ENDIF.
|
|
||||||
*
|
|
||||||
* UNASSIGN <val>.
|
|
||||||
* lv_assign = `OMESSAGE->TYPE->*`.
|
|
||||||
* ASSIGN lo_data->(lv_assign) TO <val>.
|
|
||||||
* IF <val> <> `information`.
|
|
||||||
* cl_abap_unit_assert=>fail( msg = 'message box - type wrong' quit = 5 ).
|
|
||||||
* ENDIF.
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD test_startup_path.
|
METHOD test_startup_path.
|
||||||
|
@ -647,7 +612,7 @@ CLASS ltcl_unit_02_app_start IMPLEMENTATION.
|
||||||
/ui2/cl_json=>deserialize( EXPORTING json = lv_response
|
/ui2/cl_json=>deserialize( EXPORTING json = lv_response
|
||||||
CHANGING data = lo_data ).
|
CHANGING data = lo_data ).
|
||||||
|
|
||||||
" FIELD-SYMBOLS <val> TYPE any.
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD test_navigate.
|
METHOD test_navigate.
|
||||||
|
@ -661,7 +626,7 @@ CLASS ltcl_unit_02_app_start IMPLEMENTATION.
|
||||||
/ui2/cl_json=>deserialize( EXPORTING json = lv_response
|
/ui2/cl_json=>deserialize( EXPORTING json = lv_response
|
||||||
CHANGING data = lo_data ).
|
CHANGING data = lo_data ).
|
||||||
|
|
||||||
" FIELD-SYMBOLS <val> TYPE any.
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
@ -700,7 +665,7 @@ CLASS ltcl_unit_03_app_ajax IMPLEMENTATION.
|
||||||
WHEN 'BUTTON_POST'.
|
WHEN 'BUTTON_POST'.
|
||||||
client->popup_message_toast( |{ product } { quantity } - send to the server| ).
|
client->popup_message_toast( |{ product } { quantity } - send to the server| ).
|
||||||
WHEN 'BACK'.
|
WHEN 'BACK'.
|
||||||
client->nav_app_leave( client->get_app( client->get( )-id_prev_app_stack ) ).
|
client->nav_app_leave( client->get_app( client->get( )-id_prev_app_stack ) ).
|
||||||
ENDCASE.
|
ENDCASE.
|
||||||
|
|
||||||
IF sv_state = 'ERROR'.
|
IF sv_state = 'ERROR'.
|
||||||
|
|
|
@ -872,68 +872,68 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD cc_file_uploader_get_js.
|
METHOD cc_file_uploader_get_js.
|
||||||
result = ` jQuery.sap.declare("z2ui5.FileUploader");` && |\n| &&
|
result = ` jQuery.sap.declare("z2ui5.FileUploader");` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` sap.ui.define([` && |\n| &&
|
` sap.ui.define([` && |\n| &&
|
||||||
` "sap/ui/core/Control",` && |\n| &&
|
` "sap/ui/core/Control",` && |\n| &&
|
||||||
` "sap/m/Button",` && |\n| &&
|
` "sap/m/Button",` && |\n| &&
|
||||||
` "sap/ui/unified/FileUploader"` && |\n| &&
|
` "sap/ui/unified/FileUploader"` && |\n| &&
|
||||||
` ], function (Control, Button, FileUploader) {` && |\n| &&
|
` ], function (Control, Button, FileUploader) {` && |\n| &&
|
||||||
` "use strict";` && |\n| &&
|
` "use strict";` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` return Control.extend("z2ui5.FileUploader", {` && |\n| &&
|
` return Control.extend("z2ui5.FileUploader", {` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` metadata: {` && |\n| &&
|
` metadata: {` && |\n| &&
|
||||||
` properties: {` && |\n| &&
|
` properties: {` && |\n| &&
|
||||||
` value: {` && |\n| &&
|
` value: {` && |\n| &&
|
||||||
` type: "string",` && |\n| &&
|
` type: "string",` && |\n| &&
|
||||||
` defaultValue: ""` && |\n| &&
|
` defaultValue: ""` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` path: {` && |\n| &&
|
` path: {` && |\n| &&
|
||||||
` type: "string",` && |\n| &&
|
` type: "string",` && |\n| &&
|
||||||
` defaultValue: ""` && |\n| &&
|
` defaultValue: ""` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` tooltip: {` && |\n| &&
|
` tooltip: {` && |\n| &&
|
||||||
` type: "string",` && |\n| &&
|
` type: "string",` && |\n| &&
|
||||||
` defaultValue: ""` && |\n| &&
|
` defaultValue: ""` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` fileType: {` && |\n| &&
|
` fileType: {` && |\n| &&
|
||||||
` type: "string",` && |\n| &&
|
` type: "string",` && |\n| &&
|
||||||
` defaultValue: ""` && |\n| &&
|
` defaultValue: ""` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` placeholder: {` && |\n| &&
|
` placeholder: {` && |\n| &&
|
||||||
` type: "string",` && |\n| &&
|
` type: "string",` && |\n| &&
|
||||||
` defaultValue: ""` && |\n| &&
|
` defaultValue: ""` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` buttonText: {` && |\n| &&
|
` buttonText: {` && |\n| &&
|
||||||
` type: "string",` && |\n| &&
|
` type: "string",` && |\n| &&
|
||||||
` defaultValue: "Upload"` && |\n| &&
|
` defaultValue: "Upload"` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` enabled: {` && |\n| &&
|
` enabled: {` && |\n| &&
|
||||||
` type: "boolean",` && |\n| &&
|
` type: "boolean",` && |\n| &&
|
||||||
` defaultValue: true` && |\n| &&
|
` defaultValue: true` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` multiple: {` && |\n| &&
|
` multiple: {` && |\n| &&
|
||||||
` type: "boolean",` && |\n| &&
|
` type: "boolean",` && |\n| &&
|
||||||
` defaultValue: false` && |\n| &&
|
` defaultValue: false` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` aggregations: {` && |\n| &&
|
` aggregations: {` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` events: {` && |\n| &&
|
` events: {` && |\n| &&
|
||||||
` "upload": {` && |\n| &&
|
` "upload": {` && |\n| &&
|
||||||
` allowPreventDefault: true,` && |\n| &&
|
` allowPreventDefault: true,` && |\n| &&
|
||||||
` parameters: {}` && |\n| &&
|
` parameters: {}` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` renderer: null` && |\n| &&
|
` renderer: null` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` renderer: function (oRm, oControl) {` && |\n| &&
|
` renderer: function (oRm, oControl) {` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` oControl.oUploadButton = new Button({` && |\n| &&
|
` oControl.oUploadButton = new Button({` && |\n| &&
|
||||||
` text: oControl.getProperty("buttonText"),` && |\n| &&
|
` text: oControl.getProperty("buttonText"),` && |\n| &&
|
||||||
` enabled: oControl.getProperty("path") !== "",` && |\n| &&
|
` enabled: oControl.getProperty("path") !== "",` && |\n| &&
|
||||||
` press: function (oEvent) {` && |\n| &&
|
` press: function (oEvent) {` && |\n| &&
|
||||||
|
@ -941,41 +941,41 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
|
||||||
` this.setProperty("path", this.oFileUploader.getProperty("value"));` && |\n| &&
|
` this.setProperty("path", this.oFileUploader.getProperty("value"));` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` var file = this.oFileUploader.oFileUpload.files[0];` && |\n| &&
|
` var file = this.oFileUploader.oFileUpload.files[0];` && |\n| &&
|
||||||
` var reader = new FileReader();` && |\n| &&
|
` var reader = new FileReader();` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` reader.onload = function (evt) {` && |\n| &&
|
` reader.onload = function (evt) {` && |\n| &&
|
||||||
` var vContent = evt.currentTarget.result;` && |\n| &&
|
` var vContent = evt.currentTarget.result;` && |\n| &&
|
||||||
` this.setProperty("value", vContent);` && |\n| &&
|
` this.setProperty("value", vContent);` && |\n| &&
|
||||||
` this.fireUpload();` && |\n| &&
|
` this.fireUpload();` && |\n| &&
|
||||||
` //this.getView().byId('picture' ).getDomRef().src = vContent;` && |\n| &&
|
` //this.getView().byId('picture' ).getDomRef().src = vContent;` && |\n| &&
|
||||||
` }.bind(this)` && |\n| &&
|
` }.bind(this)` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` reader.readAsDataURL(file);` && |\n| &&
|
` reader.readAsDataURL(file);` && |\n| &&
|
||||||
` }.bind(oControl)` && |\n| &&
|
` }.bind(oControl)` && |\n| &&
|
||||||
` });` && |\n| &&
|
` });` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` oControl.oFileUploader = new FileUploader({` && |\n| &&
|
` oControl.oFileUploader = new FileUploader({` && |\n| &&
|
||||||
` icon: "sap-icon://browse-folder",` && |\n| &&
|
` icon: "sap-icon://browse-folder",` && |\n| &&
|
||||||
` iconOnly: true,` && |\n| &&
|
` iconOnly: true,` && |\n| &&
|
||||||
` value: oControl.getProperty("path"),` && |\n| &&
|
` value: oControl.getProperty("path"),` && |\n| &&
|
||||||
` placeholder: oControl.getProperty("placeholder"),` && |\n| &&
|
` placeholder: oControl.getProperty("placeholder"),` && |\n| &&
|
||||||
` change: function (oEvent) {` && |\n| &&
|
` change: function (oEvent) {` && |\n| &&
|
||||||
` var value = oEvent.getSource().getProperty("value");` && |\n| &&
|
` var value = oEvent.getSource().getProperty("value");` && |\n| &&
|
||||||
` this.setProperty("path", value);` && |\n| &&
|
` this.setProperty("path", value);` && |\n| &&
|
||||||
` if (value) {` && |\n| &&
|
` if (value) {` && |\n| &&
|
||||||
` this.oUploadButton.setEnabled();` && |\n| &&
|
` this.oUploadButton.setEnabled();` && |\n| &&
|
||||||
` } else {` && |\n| &&
|
` } else {` && |\n| &&
|
||||||
` this.oUploadButton.setEnabled(false);` && |\n| &&
|
` this.oUploadButton.setEnabled(false);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` this.oUploadButton.rerender();` && |\n| &&
|
` this.oUploadButton.rerender();` && |\n| &&
|
||||||
` }.bind(oControl)` && |\n| &&
|
` }.bind(oControl)` && |\n| &&
|
||||||
` });` && |\n| &&
|
` });` && |\n| &&
|
||||||
|\n| &&
|
|\n| &&
|
||||||
` var hbox = new sap.m.HBox();` && |\n| &&
|
` var hbox = new sap.m.HBox();` && |\n| &&
|
||||||
` hbox.addItem(oControl.oFileUploader);` && |\n| &&
|
` hbox.addItem(oControl.oFileUploader);` && |\n| &&
|
||||||
` hbox.addItem(oControl.oUploadButton);` && |\n| &&
|
` hbox.addItem(oControl.oUploadButton);` && |\n| &&
|
||||||
` oRm.renderControl(hbox);` && |\n| &&
|
` oRm.renderControl(hbox);` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` });` && |\n| &&
|
` });` && |\n| &&
|
||||||
` });`.
|
` });`.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
@ -1092,7 +1092,7 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
|
||||||
METHOD carousel.
|
METHOD carousel.
|
||||||
|
|
||||||
result = _generic( name = `Carousel`
|
result = _generic( name = `Carousel`
|
||||||
t_prop = VALUE #( ( n = `loop` v = lcl_utility=>get_json_boolean( loop ) )
|
t_prop = VALUE #( ( n = `loop` v = lcl_utility=>get_json_boolean( loop ) )
|
||||||
( n = `class` v = class )
|
( n = `class` v = class )
|
||||||
( n = `height` v = height )
|
( n = `height` v = height )
|
||||||
) ).
|
) ).
|
||||||
|
@ -1278,11 +1278,13 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD hlp_get_source_code_url.
|
METHOD hlp_get_source_code_url.
|
||||||
DATA(lv_url) = z2ui5_cl_http_handler=>client-t_header[ name = `referer` ]-value.
|
DATA(lv_url) = z2ui5_cl_http_handler=>client-t_header[ name = `referer` ]-value.
|
||||||
" TODO: variable is assigned but never used (ABAP cleaner)
|
|
||||||
SPLIT lv_url AT '?' INTO lv_url DATA(lv_dummy).
|
SPLIT lv_url AT '?' INTO lv_url DATA(lv_dummy).
|
||||||
|
|
||||||
result = z2ui5_cl_http_handler=>client-t_header[ name = `origin` ]-value && `/sap/bc/adt/oo/classes/` && lcl_utility=>get_classname_by_ref(
|
result = z2ui5_cl_http_handler=>client-t_header[ name = `origin` ]-value &&
|
||||||
app ) && `/source/main`.
|
`/sap/bc/adt/oo/classes/` && lcl_utility=>get_classname_by_ref( app ) &&
|
||||||
|
`/source/main`.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD hlp_replace_controller_name.
|
METHOD hlp_replace_controller_name.
|
||||||
|
@ -1675,7 +1677,7 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
|
||||||
( n = `width` v = width )
|
( n = `width` v = width )
|
||||||
( n = `vertical` v = lcl_utility=>get_json_boolean( vertical ) )
|
( n = `vertical` v = lcl_utility=>get_json_boolean( vertical ) )
|
||||||
( n = `horizontal` v = lcl_utility=>get_json_boolean( horizontal ) )
|
( n = `horizontal` v = lcl_utility=>get_json_boolean( horizontal ) )
|
||||||
( n = `focusable` v = lcl_utility=>get_json_boolean( focusable ) ) ) ).
|
( n = `focusable` v = lcl_utility=>get_json_boolean( focusable ) ) ) ).
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD search_field.
|
METHOD search_field.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user