Update abaplint.jsonc (#1367)

* Update abaplint.jsonc

* Update abaplint.jsonc

* Update abaplint.jsonc

* update

* update
This commit is contained in:
oblomov-dev 2024-09-04 22:10:48 +02:00 committed by GitHub
parent 31869ba1a2
commit a93dd6fc16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
22 changed files with 710 additions and 1051 deletions

View File

@ -1,341 +0,0 @@
{
"global": {
"files": "/src/**/*.*",
"noIssues": [ "/src/01/00" ]
},
"dependencies": [
{
"url": "https://github.com/abapedia/steampunk-2305-api-intersect-702",
"folder": "/deps",
"files": "/src/**/*.*"
}
],
"syntax": {
"version": "v750",
"errorNamespace": "."
},
"rules": {
"7bit_ascii": true,
"abapdoc": false,
"sql_value_conversion" : true,
"select_single_full_key" : true,
"strict_sql" : true,
"easy_to_find_messages" : true,
"fully_type_itabs" : true,
"align_parameters": false,
"smim_consistency": true,
"allowed_object_naming": true,
"allowed_object_types": {
"allowed": [
"CLAS",
"DEVC",
"INTF",
"TABL",
]
},
"ambiguous_statement": true,
"avoid_use": {
"exclude": ["z2ui5_cl_util_stmpncfctn.clas.abap"],
"severity": "Error",
"skipQuickFix": false,
"define": true,
"statics": true,
"defaultKey": true,
"break": true,
"testSeams": true,
"describeLines": true,
"exportToMemory": true,
"exportToDatabase": true
},
"begin_end_names": true,
"begin_single_include": true,
"call_transaction_authority_check": true,
"cds_comment_style": true,
"cds_legacy_view": true,
"cds_parser_error": true,
"chain_mainly_declarations": true,
"change_if_to_case": true,
"check_abstract": true,
"check_comments": true,
"check_ddic": true,
"check_include": true,
"check_subrc": true,
"check_syntax": true,
"check_text_elements": true,
"check_transformation_exists": true,
"class_attribute_names": false,
"classic_exceptions_overlap": true,
"cloud_types": true,
"colon_missing_space": true,
"commented_code": false,
"constant_classes": true,
"constructor_visibility_public": true,
"contains_tab": {
"exclude": [],
"severity": "Error",
"spaces": 1
},
"cyclic_oo": false,
"cyclomatic_complexity": {
"exclude": [],
"severity": "Error",
"max": 8
},
"dangerous_statement": {
"exclude": [],
"severity": "Error",
"execSQL": true,
"kernelCall": true,
"systemCall": true,
"insertReport": true,
"generateDynpro": true,
"generateReport": true,
"generateSubroutine": true,
"deleteReport": true,
"deleteTextpool": true,
"deleteDynpro": true,
"exportDynpro": true,
"dynamicSQL": true
},
"db_operation_in_loop": true,
"definitions_top": false,
"description_empty": true,
"double_space": false,
"downport": true,
"empty_line_in_statement": true,
"empty_statement": true,
"empty_structure": {
"loop": false,
"if": true,
"while": true,
"case": true,
"select": true,
"do": true,
"at": true,
"try": true,
"when": false
},
"exit_or_check": true,
"expand_macros": true,
"exporting": true,
"forbidden_identifier": true,
"forbidden_pseudo_and_pragma": {
"exclude": [],
"severity": "Error",
"pseudo": [],
"pragmas": [],
"ignoreGlobalClassDefinition": false,
"ignoreGlobalInterface": false
},
"form_tables_obsolete": true,
"fully_type_constants": {
"checkData": true
},
"function_module_recommendations": true,
"functional_writing": {
"ignoreExceptions": true
},
"global_class": true,
"identical_conditions": true,
"identical_contents": true,
"identical_descriptions": true,
"identical_form_names": true,
"if_in_if": true,
"implement_methods": true,
"in_statement_indentation": false,
"indentation": false,
"inline_data_old_versions": true,
"intf_referencing_clas": false,
"keep_single_parameter_on_one_line": false,
"keyword_case": false,
"line_break_multiple_parameters": false,
"line_break_style": true,
"line_length": false,
"line_only_punc": false,
"local_class_naming": false,
"local_testclass_consistency": true,
"local_variable_names": false,
"main_file_contents": true,
"many_parentheses": true,
"max_one_method_parameter_per_line": true,
"max_one_statement": true,
"message_exists": true,
"method_implemented_twice": true,
"method_length": false,
"method_overwrites_builtin": false,
"method_parameter_names": false,
"mix_returning": true,
"modify_only_own_db_tables": {
"reportDynamic": true,
"ownTables": "^[yz]"
},
"msag_consistency": true,
"names_no_dash": true,
"nesting": {
"depth": 5
},
"newline_between_methods": true,
"no_aliases": true,
"no_chained_assignment": true,
"no_external_form_calls": true,
"no_inline_in_optional_branches": false,
"no_public_attributes": false,
"no_yoda_conditions": true,
"nrob_consistency": true,
"object_naming": {
"exclude": [],
"severity": "Error",
"patternKind": "required",
"ignoreNames": [],
"ignorePatterns": [],
"clas": "^Z2UI5_C(L|X)",
"intf": "^Z2UI5_IF",
"prog": "^Z",
"fugr": "^Z",
"tabl": "^Z",
"ttyp": "^Z",
"dtel": "^Z",
"doma": "^Z",
"msag": "^Z",
"tran": "^Z",
"enqu": "^EZ",
"auth": "^Z",
"pinf": "^Z",
"idoc": "^Z",
"xslt": "^Z",
"ssfo": "^Z",
"ssst": "^Z",
"shlp": "^Z"
},
"obsolete_statement": true,
"omit_parameter_name": true,
"omit_preceding_zeros": true,
"omit_receiving": true,
"parser_702_chaining": true,
"parser_error": true,
"parser_missing_space": true,
"pragma_style": true,
"prefer_corresponding": true,
"prefer_inline": false,
"prefer_is_not": true,
"prefer_raise_exception_new": true,
"prefer_returning_to_exporting": true,
"prefer_xsdbool": true,
"preferred_compare_operator": true,
"prefix_is_current_class": {
"severity": "Warning"
},
"reduce_string_templates": true,
"release_idoc": true,
"remove_descriptions": {
"exclude": [],
"severity": "Error",
"ignoreExceptions": false,
"ignoreWorkflow": true
},
"rfc_error_handling": true,
"select_add_order_by": false,
"select_performance": true,
"selection_screen_naming": true,
"sequential_blank": {
"severity": "Warning"
},
"short_case": true,
"sicf_consistency": true,
"slow_parameter_passing": true,
"space_before_colon": true,
"space_before_dot": true,
"sql_escape_host_variables": true,
"start_at_tab": false,
"static_call_via_instance": {
"allowInTestclassIncludes": false
},
"superclass_final": true,
"superfluous_value": true,
"sy_modification": true,
"tabl_enhancement_category": true,
"try_without_catch": true,
"type_form_parameters": true,
"types_naming": false,
"uncaught_exception": true,
"unknown_types": true,
"unnecessary_chaining": true,
"unnecessary_pragma": true,
"unnecessary_return": true,
"unreachable_code": true,
"unsecure_fae": false,
"unused_ddic": true,
"unused_methods": true,
"unused_types": true,
"unused_variables": {
"severity": "Error",
"skipNames": ["lv_dummy"]
},
"use_bool_expression": true,
"use_class_based_exceptions": true,
"use_line_exists": true,
"use_new": true,
"when_others_last": true,
"whitespace_end": true,
"xml_consistency": true,
"forbidden_void_type": {
"check": [
"^boole_d$",
"^char10$",
"^char12$",
"^char2$",
"^char20$",
"^char30$",
"^char4$",
"^char50$",
"^char70$",
"^cl_abap_syst",
"^cl_aff_",
"^cl_aucv_test_runner_abstract$",
"^cl_aucv_test_runner_standard$",
"^cl_aunit_assert$",
"^cl_axt_dbtable$",
"^cl_blue_wb_utility$",
"^cl_oo_source$",
"^/ui2/cl_$",
"^/ui2/cl_",
"^cl_saunit_internal_result$",
"^cl_srvd_wb_object_data$",
"^cl_wb_object_operator_factory$",
"^cl_wer_const$",
"^cl_xco_",
"^cx_aff_",
"^cx_wb_object_operation_error$",
"^cx_xco_",
"^flag$",
"^i18_a_langiso2$",
"^if_adt_lock_handle$",
"^if_aff_",
"^if_satc_ci_variant_access$",
"^if_saunit_internal_result$",
"^if_saunit_internal_result_type$",
"^if_srvd_types$",
"^if_wb_adt_plugin_resource_co$",
"^if_wb_object_data_selection_co$",
"^if_wb_object_operator$",
"^if_xco_",
"^int4$",
"^numc2$",
"^sabp_t_tadir_keys$",
"^sap_bool$",
"^srcsystem$",
"^stringtab$",
"^sychar01$",
"^sychar10$",
"^sychar70$",
"^sydatum$",
"^sylangu$",
"^syst_title$",
"^syuzeit$",
"^xubname$",
"^feld$",
"^abap_boolean$",
]
},
}
}

View File

@ -22,7 +22,7 @@
"strict_sql" : true,
"easy_to_find_messages" : true,
"fully_type_itabs" : true,
"align_parameters": false,
"align_parameters": true,
"smim_consistency": true,
"allowed_object_naming": true,
"allowed_object_types": {
@ -158,7 +158,7 @@
"inline_data_old_versions": true,
"intf_referencing_clas": false,
"keep_single_parameter_on_one_line": false,
"keyword_case": false,
"keyword_case": true,
"line_break_multiple_parameters": false,
"line_break_style": true,
"line_length": false,
@ -242,7 +242,7 @@
"exclude": [],
"severity": "Error",
"ignoreExceptions": false,
"ignoreWorkflow": true
"ignoreWorkflow": false
},
"rfc_error_handling": true,
"select_add_order_by": false,

View File

@ -47,7 +47,7 @@ CLASS z2ui5_cl_core_attri_srv IMPLEMENTATION.
LOOP AT mt_attri->* REFERENCE INTO DATA(lr_attri).
TRY.
lr_attri->r_ref = attri_get_val_ref( lr_attri->name ).
lr_attri->o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_attri->r_ref ).
lr_attri->o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_attri->r_ref ).
IF lr_attri->srtti_data IS NOT INITIAL.
ASSIGN lr_attri->r_ref->* TO FIELD-SYMBOL(<val>).
@ -126,7 +126,7 @@ CLASS z2ui5_cl_core_attri_srv IMPLEMENTATION.
""""" new
DATA(lt_attri) = mt_attri->*.
DELETE lt_attri WHERE BIND_type IS INITIAL.
DELETE lt_attri WHERE bind_type IS INITIAL.
CLEAR mt_attri->*.
DO 5 TIMES.

View File

@ -46,7 +46,7 @@ CLASS ltcl_test_search_attri IMPLEMENTATION.
GET REFERENCE OF lo_app_client->mv_value INTO lr_value.
DATA(lt_attri) = VALUE z2ui5_if_core_types=>ty_t_attri( (
r_ref = lr_value
r_ref = lr_value
o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_value )
) ).
@ -69,7 +69,7 @@ CLASS ltcl_test_search_attri IMPLEMENTATION.
GET REFERENCE OF lo_app_client->mv_value INTO lr_value.
DATA(lt_attri) = VALUE z2ui5_if_core_types=>ty_t_attri( (
r_ref = REF #( lo_app_client->mv_value )
r_ref = REF #( lo_app_client->mv_value )
o_typedescr = cl_abap_datadescr=>describe_by_data_ref( lr_value )
) ).
@ -96,7 +96,7 @@ CLASS ltcl_test_search_attri IMPLEMENTATION.
DATA(lt_attri) = VALUE z2ui5_if_core_types=>ty_t_attri(
( name = `1` r_ref = REF #( lo_app_client->mr_value ) )
( name = `4` r_ref = REF #( lo_app_client->mr_value2 ) )
( name = `2` r_ref = REF #( lo_app_client->mo_app ) )
( name = `2` r_ref = REF #( lo_app_client->mo_app ) )
( name = `3` r_ref = REF #( lo_app_client->mv_value ) ) ).
DATA(lr_attri) = REF #( lt_attri[ r_ref = lr_value ] ).

View File

@ -119,7 +119,7 @@ CLASS z2ui5_cl_core_diss_srv IMPLEMENTATION.
AND is_constant = abap_false.
TRY.
DATA(lv_name) = COND #( WHEN ir_attri->name IS NOT INITIAL THEN ir_attri->name && `->` ) && lr_attri->name.
DATA(ls_new) = create_new_entry( lv_name ).
DATA(ls_new) = create_new_entry( lv_name ).
INSERT ls_new INTO TABLE result.
CATCH cx_root.

View File

@ -27,11 +27,11 @@ CLASS ltcl_test IMPLEMENTATION.
model_xml = `my xml`
).
DATA(ls_db) = lo_draft->read_draft( `TEST_ID` ).
DATA(ls_db) = lo_draft->read_draft( `TEST_ID` ).
cl_abap_unit_assert=>assert_equals(
act = ls_db-data
exp = `my xml` ).
act = ls_db-data
exp = `my xml` ).
ENDMETHOD.

View File

@ -50,7 +50,7 @@ CLASS z2ui5_cl_core_json_srv IMPLEMENTATION.
LOOP AT t_attri->* REFERENCE INTO DATA(lr_attri)
WHERE bind_type = z2ui5_if_core_types=>cs_bind_type-two_way
AND view = lv_view.
AND view = lv_view.
TRY.
DATA(lo_val_front) = model->slice( lr_attri->name_client ).
@ -99,7 +99,7 @@ CLASS z2ui5_cl_core_json_srv IMPLEMENTATION.
ASSIGN lr_attri->r_ref->* TO FIELD-SYMBOL(<attribute>).
ASSERT sy-subrc = 0.
ajson->set( iv_ignore_empty = abap_false iv_path = `/` iv_val = <attribute> ).
ajson->set( iv_ignore_empty = abap_false iv_path = `/` iv_val = <attribute> ).
WHEN z2ui5_if_core_types=>cs_bind_type-one_time.
ajson->set( iv_ignore_empty = abap_false iv_path = `/` iv_val = lr_attri->json_bind_local ).

View File

@ -62,7 +62,7 @@ CLASS ltcl_test_db IMPLEMENTATION.
cl_abap_unit_assert=>assert_equals(
act = lo_app_user_db->mv_value
exp = lo_app_user->mv_value ).
exp = lo_app_user->mv_value ).
ENDMETHOD.

View File

@ -92,7 +92,7 @@ CLASS z2ui5_cl_core_client IMPLEMENTATION.
textdirection = textdirection
icon = icon
details = details
closeOnNavigation = closeOnNavigation
closeonnavigation = closeonnavigation
).
ENDMETHOD.
@ -127,7 +127,7 @@ CLASS z2ui5_cl_core_client IMPLEMENTATION.
IF app->id_app IS INITIAL.
app->id_app = z2ui5_cl_util=>uuid_get_c32( ).
ENDIF.
result = app->id_app.
result = app->id_app.
ENDMETHOD.
@ -142,7 +142,7 @@ CLASS z2ui5_cl_core_client IMPLEMENTATION.
IF app->id_app IS INITIAL.
app->id_app = z2ui5_cl_util=>uuid_get_c32( ).
ENDIF.
result = app->id_app.
result = app->id_app.
ENDMETHOD.
@ -312,9 +312,9 @@ CLASS z2ui5_cl_core_client IMPLEMENTATION.
DATA(lo_ui5) = NEW z2ui5_cl_core_event_srv( ).
result = lo_ui5->get_event(
val = val
t_arg = t_arg
s_cnt = s_ctrl ).
val = val
t_arg = t_arg
s_cnt = s_ctrl ).
ENDMETHOD.

View File

@ -83,9 +83,9 @@ CLASS z2ui5_cl_core_http_post IMPLEMENTATION.
METHOD main_end.
ms_response = VALUE #(
s_front-params = mo_action->ms_next-s_set
s_front-id = mo_action->mo_app->ms_draft-id
s_front-app = z2ui5_cl_util=>rtti_get_classname_by_ref( mo_action->mo_app->mo_app )
s_front-params = mo_action->ms_next-s_set
s_front-id = mo_action->mo_app->ms_draft-id
s_front-app = z2ui5_cl_util=>rtti_get_classname_by_ref( mo_action->mo_app->mo_app )
).
IF ms_response-s_front-params-s_view-check_update_model = abap_true

View File

@ -46,13 +46,13 @@ CLASS z2ui5_cl_core_app_error IMPLEMENTATION.
DATA(view) = z2ui5_cl_xml_view=>factory( ).
DATA(vbox) = view->shell( )->vbox( alignitems = `Center` ).
vbox->text( ).
vbox->text( ).
vbox->hbox(
)->icon( src = `sap-icon://alert`
)->text(
)->title( `500 Internal Server Error`
)->text(
)->icon( src = `sap-icon://alert` ).
)->icon( src = `sap-icon://alert` ).
vbox->formatted_text( lv_text ).
vbox->hbox(
)->button(

View File

@ -80,7 +80,7 @@ CLASS Z2UI5_CL_CORE_APP_STARTUP IMPLEMENTATION.
METHOD view_display_start.
DATA(page2) = z2ui5_cl_xml_view=>factory( )->shell( )->page(
title = `abap2UI5 - Developing UI5 Apps Purely in ABAP`
title = `abap2UI5 - Developing UI5 Apps Purely in ABAP`
shownavbutton = abap_false ).
page2->header_content(

View File

@ -21,143 +21,143 @@ CLASS z2ui5_cl_cc_debug_tool IMPLEMENTATION.
METHOD get_js.
result = `` && |\n| &&
`if (!z2ui5.DebuggingTools) { sap.ui.define( "z2ui5/DebuggingTools" ,[` && |\n| &&
` "sap/ui/core/Control",` && |\n| &&
` "sap/ui/core/Fragment",` && |\n| &&
` "sap/ui/model/json/JSONModel"` && |\n| &&
`], (Control, Fragment, JSONModel) => {` && |\n| &&
` "use strict";` && |\n| &&
|\n| &&
` return Control.extend("project1.control.DebuggingTools", {` && |\n| &&
` metadata: {` && |\n| &&
` properties: {` && |\n| &&
` checkLoggingActive: {` && |\n| &&
` type: "boolean",` && |\n| &&
` defaultValue: ""` && |\n| &&
` }` && |\n| &&
` },` && |\n| &&
` events: {` && |\n| &&
` "finished": {` && |\n| &&
` allowPreventDefault: true,` && |\n| &&
` parameters: {},` && |\n| &&
` }` && |\n| &&
` }` && |\n| &&
` },` && |\n| &&
|\n| &&
` async show() {` && |\n| &&
|\n| &&
` var oFragmentController = {` && |\n| &&
` prettifyXml: function (sourceXml) {` && |\n| &&
` var xmlDoc = new DOMParser().parseFromString(sourceXml, 'application/xml');` && |\n| &&
` // describes how we want to modify the XML - indent everything` && |\n| &&
result = `` && |\n| &&
`if (!z2ui5.DebuggingTools) { sap.ui.define( "z2ui5/DebuggingTools" ,[` && |\n| &&
` "sap/ui/core/Control",` && |\n| &&
` "sap/ui/core/Fragment",` && |\n| &&
` "sap/ui/model/json/JSONModel"` && |\n| &&
`], (Control, Fragment, JSONModel) => {` && |\n| &&
` "use strict";` && |\n| &&
|\n| &&
` return Control.extend("project1.control.DebuggingTools", {` && |\n| &&
` metadata: {` && |\n| &&
` properties: {` && |\n| &&
` checkLoggingActive: {` && |\n| &&
` type: "boolean",` && |\n| &&
` defaultValue: ""` && |\n| &&
` }` && |\n| &&
` },` && |\n| &&
` events: {` && |\n| &&
` "finished": {` && |\n| &&
` allowPreventDefault: true,` && |\n| &&
` parameters: {},` && |\n| &&
` }` && |\n| &&
` }` && |\n| &&
` },` && |\n| &&
|\n| &&
` async show() {` && |\n| &&
|\n| &&
` var oFragmentController = {` && |\n| &&
` prettifyXml: function (sourceXml) {` && |\n| &&
` var xmlDoc = new DOMParser().parseFromString(sourceXml, 'application/xml');` && |\n| &&
` // describes how we want to modify the XML - indent everything` && |\n| &&
` var sParse = unescape( '%3Cxsl%3Astylesheet%20xmlns%3Axsl%3D%22http%3A//www.w3.org/1999/XSL/Transform%22%3E%0A%20%20%3Cxsl%3Astrip-space%20elements%3D%22*%22/%3E%0A%20%20%3Cxsl%3Atemplate%20match%3D%22para%5Bconten` &&
`t-style%5D%5Bnot%28text%28%29%29%5` &&
`D%22%3E%0A%20%20%20%20%3Cxsl%3Avalue-of%20select%3D%22normalize-space%28.%29%22/%3E%0A%20%20%3C/xsl%3Atemplate%3E%0A%20%20%3Cxsl%3Atemplate%20match%3D%22node%28%29%7C@*%22%3E%0A%20%20%20%20%3Cxsl%3Acopy%3E%3Cxsl%3Aapply-templates%20select%3D%22node` &&
`%28%29%7C@*%22/%3E%3C/xsl%3Acopy%3E%0A%20%20%3C/xsl%3Atemplate%3E%0A%20%20%3Cxsl%3Aoutput%20indent%3D%22yes%22/%3E%0A%3C/xsl%3Astylesheet%3E' )` && |\n| &&
` var xsltDoc = new DOMParser().parseFromString(sParse , 'application/xml');` && |\n| &&
` ` && |\n| &&
` var xsltProcessor = new XSLTProcessor(); ` && |\n| &&
` xsltProcessor.importStylesheet(xsltDoc);` && |\n| &&
` var resultDoc = xsltProcessor.transformToDocument(xmlDoc);` && |\n| &&
` var resultXml = new XMLSerializer().serializeToString(resultDoc);` && |\n| &&
` return resultXml.replace(/&gt;/g, ">");` && |\n| &&
` },` && |\n| &&
` onItemSelect: function (oEvent) {` && |\n| &&
` let selItem = oEvent.getSource().getSelectedItem();` && |\n| &&
` ` && |\n| &&
` if (selItem == 'MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oView?.getModel()?.getData(), null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'VIEW') {` && |\n| &&
` if( sap?.z2ui5?.oView?.mProperties?.viewContent !== undefined ) {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oView?.mProperties?.viewContent ) , 'xml', this.prettifyXml( sap?.z2ui5?.oView?._xContent.outerHTML) );` && |\n| &&
` } else {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap.z2ui5.responseData.S_FRONT.PARAMS.S_VIEW.XML ), 'xml', this.prettifyXml( sap?.z2ui5?.oView?._xContent.outerHTML) );` && |\n| &&
` }` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'PLAIN') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify(sap.z2ui5.responseData, null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'REQUEST') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify(sap.z2ui5.oBody, null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'POPUP') {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oResponse?.PARAMS?.S_POPUP?.XML ) , 'xml' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'POPUP_MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap.z2ui5.oViewPopup.getModel().getData(), null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'POPOVER') {` && |\n| &&
` this.displayEditor( oEvent, sap?.z2ui5?.oResponse?.PARAMS?.S_POPOVER?.XML , 'xml' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'POPOVER_MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewPopover?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'NEST1') {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oViewNest?.mProperties?.viewContent ) , 'xml' , this.prettifyXml( sap?.z2ui5?.oViewNest?._xContent.outerHTML) );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'NEST1_MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'NEST2') {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oViewNest2?.mProperties?.viewContent ) , 'xml' , this.prettifyXml( sap?.z2ui5?.oViewNest2?._xContent.outerHTML) );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'NEST2_MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest2?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'SOURCE') {` && |\n| &&
` let content= oEvent.getSource().getParent().getItems()[1].getItems()[0].getProperty( "content");` && |\n| &&
` let url = window.location.origin + "/sap/bc/adt/oo/classes/" + sap.z2ui5.responseData.S_FRONT.APP + "/source/main";` && |\n| &&
`%28%29%7C@*%22/%3E%3C/xsl%3Acopy%3E%0A%20%20%3C/xsl%3Atemplate%3E%0A%20%20%3Cxsl%3Aoutput%20indent%3D%22yes%22/%3E%0A%3C/xsl%3Astylesheet%3E' )` && |\n| &&
` var xsltDoc = new DOMParser().parseFromString(sParse , 'application/xml');` && |\n| &&
` ` && |\n| &&
` var xsltProcessor = new XSLTProcessor(); ` && |\n| &&
` xsltProcessor.importStylesheet(xsltDoc);` && |\n| &&
` var resultDoc = xsltProcessor.transformToDocument(xmlDoc);` && |\n| &&
` var resultXml = new XMLSerializer().serializeToString(resultDoc);` && |\n| &&
` return resultXml.replace(/&gt;/g, ">");` && |\n| &&
` },` && |\n| &&
` onItemSelect: function (oEvent) {` && |\n| &&
` let selItem = oEvent.getSource().getSelectedItem();` && |\n| &&
` ` && |\n| &&
` if (selItem == 'MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oView?.getModel()?.getData(), null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'VIEW') {` && |\n| &&
` if( sap?.z2ui5?.oView?.mProperties?.viewContent !== undefined ) {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oView?.mProperties?.viewContent ) , 'xml', this.prettifyXml( sap?.z2ui5?.oView?._xContent.outerHTML) );` && |\n| &&
` } else {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap.z2ui5.responseData.S_FRONT.PARAMS.S_VIEW.XML ), 'xml', this.prettifyXml( sap?.z2ui5?.oView?._xContent.outerHTML) );` && |\n| &&
` }` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'PLAIN') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify(sap.z2ui5.responseData, null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'REQUEST') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify(sap.z2ui5.oBody, null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'POPUP') {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oResponse?.PARAMS?.S_POPUP?.XML ) , 'xml' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'POPUP_MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap.z2ui5.oViewPopup.getModel().getData(), null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'POPOVER') {` && |\n| &&
` this.displayEditor( oEvent, sap?.z2ui5?.oResponse?.PARAMS?.S_POPOVER?.XML , 'xml' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'POPOVER_MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewPopover?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'NEST1') {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oViewNest?.mProperties?.viewContent ) , 'xml' , this.prettifyXml( sap?.z2ui5?.oViewNest?._xContent.outerHTML) );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'NEST1_MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'NEST2') {` && |\n| &&
` this.displayEditor( oEvent, this.prettifyXml( sap?.z2ui5?.oViewNest2?.mProperties?.viewContent ) , 'xml' , this.prettifyXml( sap?.z2ui5?.oViewNest2?._xContent.outerHTML) );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'NEST2_MODEL') {` && |\n| &&
` this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest2?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'SOURCE') {` && |\n| &&
` let content= oEvent.getSource().getParent().getItems()[1].getItems()[0].getProperty( "content");` && |\n| &&
` let url = window.location.origin + "/sap/bc/adt/oo/classes/" + sap.z2ui5.responseData.S_FRONT.APP + "/source/main";` && |\n| &&
* ` content = '<iframe id="test" src="' + url + '" height="800px" width="1200px" />'` && |\n| &&
` content = atob( 'PGlmcmFtZSBpZD0idGVzdCIgc3JjPSInICsgdXJsICsgJyIgaGVpZ2h0PSI4MDBweCIgd2lkdGg9IjEyMDBweCIgLz4=' );` && |\n| &&
` content = atob( 'PGlmcmFtZSBpZD0idGVzdCIgc3JjPSInICsgdXJsICsgJyIgaGVpZ2h0PSI4MDBweCIgd2lkdGg9IjEyMDBweCIgLz4=' );` && |\n| &&
* ` content = '&lt;iframe id="test" src="' + url + '" height="800px" width="1200px" /&gt;'` && |\n| &&
` content = content.replace( "' + url + '" , url );` && |\n| &&
` oEvent.getSource().getParent().getItems()[1].getItems()[0].setProperty( "content" , content );` && |\n| &&
` oEvent.getSource().getModel().oData.editor_visible = false;` && |\n| &&
` oEvent.getSource().getModel().oData.source_visible = true;` && |\n| &&
` oEvent.getSource().getModel().refresh();` && |\n| &&
` // this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest2?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` ` && |\n| &&
` },` && |\n| &&
` displayEditor (oEvent, content, type, xcontent = "") {` && |\n| &&
` oEvent.getSource().getModel().oData.editor_visible = true;` && |\n| &&
` oEvent.getSource().getModel().oData.source_visible = false;` && |\n| &&
` oEvent.getSource().getModel().oData.isTemplating = content?.includes("xmlns:template") ? true : false;` && |\n| &&
` oEvent.getSource().getModel().oData.value = content;` && |\n| &&
` oEvent.getSource().getModel().oData.previousValue = content;` && |\n| &&
` oEvent.getSource().getModel().oData.xContent = xcontent;` && |\n| &&
` oEvent.getSource().getModel().oData.type = type;` && |\n| &&
` oEvent.getSource().getModel().refresh();` && |\n| &&
` },` && |\n| &&
` onTemplatingPress: function (oEvent) {` && |\n| &&
` if (oEvent.getSource().getPressed()) {` && |\n| &&
` oEvent.getSource().getModel().oData.value = oEvent.getSource().getModel().oData.xContent;` && |\n| &&
` oEvent.getSource().getModel().refresh();` && |\n| &&
` } else {` && |\n| &&
` oEvent.getSource().getModel().oData.value = oEvent.getSource().getModel().oData.previousValue;` && |\n| &&
` oEvent.getSource().getModel().refresh();` && |\n| &&
` }` && |\n| &&
` },` && |\n| &&
` onClose: function () {` && |\n| &&
` this.oDialog.close();` && |\n| &&
` ` && |\n| &&
` }` && |\n| &&
` };` && |\n| &&
` content = content.replace( "' + url + '" , url );` && |\n| &&
` oEvent.getSource().getParent().getItems()[1].getItems()[0].setProperty( "content" , content );` && |\n| &&
` oEvent.getSource().getModel().oData.editor_visible = false;` && |\n| &&
` oEvent.getSource().getModel().oData.source_visible = true;` && |\n| &&
` oEvent.getSource().getModel().refresh();` && |\n| &&
` // this.displayEditor( oEvent, JSON.stringify( sap?.z2ui5?.oViewNest2?.getModel( )?.getData( ) , null, 3) , 'json' );` && |\n| &&
` return;` && |\n| &&
` }` && |\n| &&
` ` && |\n| &&
` },` && |\n| &&
` displayEditor (oEvent, content, type, xcontent = "") {` && |\n| &&
` oEvent.getSource().getModel().oData.editor_visible = true;` && |\n| &&
` oEvent.getSource().getModel().oData.source_visible = false;` && |\n| &&
` oEvent.getSource().getModel().oData.isTemplating = content?.includes("xmlns:template") ? true : false;` && |\n| &&
` oEvent.getSource().getModel().oData.value = content;` && |\n| &&
` oEvent.getSource().getModel().oData.previousValue = content;` && |\n| &&
` oEvent.getSource().getModel().oData.xContent = xcontent;` && |\n| &&
` oEvent.getSource().getModel().oData.type = type;` && |\n| &&
` oEvent.getSource().getModel().refresh();` && |\n| &&
` },` && |\n| &&
` onTemplatingPress: function (oEvent) {` && |\n| &&
` if (oEvent.getSource().getPressed()) {` && |\n| &&
` oEvent.getSource().getModel().oData.value = oEvent.getSource().getModel().oData.xContent;` && |\n| &&
` oEvent.getSource().getModel().refresh();` && |\n| &&
` } else {` && |\n| &&
` oEvent.getSource().getModel().oData.value = oEvent.getSource().getModel().oData.previousValue;` && |\n| &&
` oEvent.getSource().getModel().refresh();` && |\n| &&
` }` && |\n| &&
` },` && |\n| &&
` onClose: function () {` && |\n| &&
` this.oDialog.close();` && |\n| &&
` ` && |\n| &&
` }` && |\n| &&
` };` && |\n| &&
* ` let XMLDef = ``<core:FragmentDefinition` && |\n| &&
* ` xmlns="sap.m"` && |\n| &&
* ` xmlns:mvc="sap.ui.core.mvc"` && |\n| &&
@ -215,25 +215,25 @@ CLASS z2ui5_cl_cc_debug_tool IMPLEMENTATION.
`JTb3VyY2UgWE1MIGFmdGVyIFRlbXBsYXRpbmciIHZpc2libGU9InsvaXNUZW1wbGF0aW5nfSIgcHJlc3NlZD0iey90ZW1wbGF0aW5nU291cmNlfSIgcHJlc3M9Im9uVGVtcGxhdGluZ1ByZXNzIiAvPgoJCQkJPGVkaXRvcjpDb2RlRWRpdG9yCiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9InsvdHlwZX0iCiAgICAgICAgIC` &&
`AgICAgICAgICAgICAgIHZhbHVlPSd7L3ZhbHVlfScKICAgICAgICAgICAgICAgICAgICBoZWlnaHQ9IjgwMHB4IiB3aWR0aD0iMTIwMHB4IiB2aXNpYmxlPSJ7L2VkaXRvcl92aXNpYmxlfSIvPgoJCQk8L1ZCb3g+CgkJPC9IQm94PgogICAgICAgICAgICAgICAgICAgCgkJPGVuZEJ1dHRvbj4KCQkJCTxCdXR0b24gdGV4dD0iQ2` &&
`xvc2UiIHByZXNzPSJvbkNsb3NlIi8+CgkJPC9lbmRCdXR0b24+CiAgICAgICAgICAgICAgICAgICAKCTwvRGlhbG9nPgogICAgICAgICAgICAgICAgCjwvY29yZTpGcmFnbWVudERlZmluaXRpb24+'; ` &&
` XMLDef = atob( XMLDef ); ` && |\n| &&
` if(this.oFragment) {` && |\n| &&
` this.oFragment.close();` && |\n| &&
` this.oFragment.destroy();` && |\n| &&
` }` && |\n| &&
` this.oFragment = await Fragment.load({` && |\n| &&
` definition: XMLDef,` && |\n| &&
` controller: oFragmentController,` && |\n| &&
` // id : "debugId"` && |\n| &&
` });` && |\n| &&
` ` && |\n| &&
` oFragmentController.oDialog = this.oFragment;` && |\n| &&
` oFragmentController.oDialog.addStyleClass('dbg-ltr');` && |\n| &&
` ` && |\n| &&
` let value = JSON.stringify(sap.z2ui5.responseData, null, 3);` && |\n| &&
` XMLDef = atob( XMLDef ); ` && |\n| &&
` if(this.oFragment) {` && |\n| &&
` this.oFragment.close();` && |\n| &&
` this.oFragment.destroy();` && |\n| &&
` }` && |\n| &&
` this.oFragment = await Fragment.load({` && |\n| &&
` definition: XMLDef,` && |\n| &&
` controller: oFragmentController,` && |\n| &&
` // id : "debugId"` && |\n| &&
` });` && |\n| &&
` ` && |\n| &&
` oFragmentController.oDialog = this.oFragment;` && |\n| &&
` oFragmentController.oDialog.addStyleClass('dbg-ltr');` && |\n| &&
` ` && |\n| &&
` let value = JSON.stringify(sap.z2ui5.responseData, null, 3);` && |\n| &&
` let oData = { ` && |\n| &&
` type: 'json', ` && |\n| &&
` source_visible : false,` && |\n| &&
` editor_visible : true,` && |\n| &&
` source_visible : false,` && |\n| &&
` editor_visible : true,` && |\n| &&
` value: value,` && |\n| &&
` xContent: '',` && |\n| &&
` previousValue: value,` && |\n| &&
@ -243,26 +243,26 @@ CLASS z2ui5_cl_cc_debug_tool IMPLEMENTATION.
` activeNest2 : sap?.z2ui5?.oViewNest2?.mProperties?.viewContent !== undefined,` && |\n| &&
` activePopup : sap?.z2ui5?.oResponse?.PARAMS?.S_POPUP?.XML !== undefined,` && |\n| &&
` activePopover : sap?.z2ui5?.oResponse?.PARAMS?.S_POPOVER?.XML !== undefined,` && |\n| &&
` };` && |\n| &&
` };` && |\n| &&
` var oModel = new JSONModel(oData);` && |\n| &&
` this.oFragment.setModel(oModel);` && |\n| &&
` this.oFragment.open();` && |\n| &&
` ` && |\n| &&
` },` && |\n| &&
` ` && |\n| &&
` async init() {` && |\n| &&
` ` && |\n| &&
` document.addEventListener("keydown", function (zEvent) {` && |\n| &&
` if (zEvent.ctrlKey ) { if ( zEvent.key === "F12") { // case sensitive` && |\n| &&
` z2ui5.DebuggingTools.show();` && |\n| &&
` } }` && |\n| &&
` });` && |\n| &&
` ` && |\n| &&
` },` && |\n| &&
` ` && |\n| &&
` renderer(oRm, oControl) {` && |\n| &&
` }, ` && |\n| &&
` });` && |\n| &&
` ` && |\n| &&
` },` && |\n| &&
` ` && |\n| &&
` async init() {` && |\n| &&
` ` && |\n| &&
` document.addEventListener("keydown", function (zEvent) {` && |\n| &&
` if (zEvent.ctrlKey ) { if ( zEvent.key === "F12") { // case sensitive` && |\n| &&
` z2ui5.DebuggingTools.show();` && |\n| &&
` } }` && |\n| &&
` });` && |\n| &&
` ` && |\n| &&
` },` && |\n| &&
` ` && |\n| &&
` renderer(oRm, oControl) {` && |\n| &&
` }, ` && |\n| &&
` });` && |\n| &&
` }); ` &&
` sap.ui.require(["z2ui5/DebuggingTools","z2ui5/Controller"], (DebuggingTools) => { z2ui5.DebuggingTools = new DebuggingTools(); ` && |\n| &&
` }); }`.

View File

@ -21,14 +21,14 @@ CLASS z2ui5_cl_cc_info IMPLEMENTATION.
METHOD get_js.
result = ` ` &&
`if (!z2ui5.Info) { sap.ui.require([` && |\n| &&
` "sap/ui/VersionInfo",` && |\n| &&
` "sap/base/util/Version"` && |\n| &&
`], function(VersionInfo, VersionUtil) {` && |\n| &&
` //access the OpenUI5 version at runtime` && |\n| &&
` VersionInfo.load().then(function(oCurrentVersionInfo) {` && |\n| &&
` sap.z2ui5.oCurrentVersionInfo = oCurrentVersionInfo;` && |\n| &&
` });` && |\n| &&
`if (!z2ui5.Info) { sap.ui.require([` && |\n| &&
` "sap/ui/VersionInfo",` && |\n| &&
` "sap/base/util/Version"` && |\n| &&
`], function(VersionInfo, VersionUtil) {` && |\n| &&
` //access the OpenUI5 version at runtime` && |\n| &&
` VersionInfo.load().then(function(oCurrentVersionInfo) {` && |\n| &&
` sap.z2ui5.oCurrentVersionInfo = oCurrentVersionInfo;` && |\n| &&
` });` && |\n| &&
`});` && |\n| &&
` sap.ui.define("z2ui5/Info",[` && |\n| &&
` "sap/ui/core/Control"` && |\n| &&

View File

@ -14,7 +14,7 @@ CLASS z2ui5_cl_pop_file_dl DEFINITION
i_button_text_confirm TYPE string DEFAULT `OK`
i_button_text_cancel TYPE string DEFAULT `Cancel`
i_file TYPE string
i_type type string default `data:text/csv;base64,`
i_type TYPE string DEFAULT `data:text/csv;base64,`
RETURNING
VALUE(r_result) TYPE REF TO z2ui5_cl_pop_file_dl.
@ -77,7 +77,7 @@ CLASS Z2UI5_CL_POP_FILE_DL IMPLEMENTATION.
)->content( ).
IF mv_check_download = abap_true.
data(lv_csv_x) = z2ui5_cl_util=>conv_get_xstring_by_string( mv_value ).
DATA(lv_csv_x) = z2ui5_cl_util=>conv_get_xstring_by_string( mv_value ).
DATA(lv_base64) = z2ui5_cl_util=>conv_encode_x_base64( lv_csv_x ).
popup->_generic( ns = `html`
name = `iframe`

View File

@ -17,7 +17,7 @@ CLASS z2ui5_cl_pop_get_range DEFINITION
CLASS-METHODS factory
IMPORTING
t_range TYPE any table OPTIONAL
t_range TYPE ANY TABLE OPTIONAL
RETURNING
VALUE(r_result) TYPE REF TO z2ui5_cl_pop_get_range.
@ -54,7 +54,7 @@ CLASS Z2UI5_CL_POP_GET_RANGE IMPLEMENTATION.
EXPORTING
val = t_range
CHANGING
tab = r_result->ms_result-t_range
tab = r_result->ms_result-t_range
).
INSERT VALUE #( ) INTO TABLE r_result->ms_result-t_range.
@ -93,7 +93,7 @@ CLASS Z2UI5_CL_POP_GET_RANGE IMPLEMENTATION.
grid->combobox(
selectedkey = `{OPTION}`
items = client->_bind( mt_mapping )
items = client->_bind( mt_mapping )
)->item(
key = '{N}'
text = '{N}'

View File

@ -69,7 +69,7 @@ CLASS Z2UI5_CL_POP_GET_RANGE_M IMPLEMENTATION.
selectionchange = client->_event( 'SELCHANGE' )
)->custom_list_item( ).
DATA(grid) = item->grid( class = `sapUiSmallMarginTop sapUiSmallMarginBottom sapUiSmallMarginBegin` ).
DATA(grid) = item->grid( class = `sapUiSmallMarginTop sapUiSmallMarginBottom sapUiSmallMarginBegin` ).
grid->text( `{NAME}` ).
grid->multi_input( tokens = `{T_TOKEN}`

View File

@ -79,7 +79,7 @@ CLASS Z2UI5_CL_POP_JS_LOADER IMPLEMENTATION.
IF check_open_ui5 = abap_true.
popup->_z2ui5( )->info_frontend(
finished = client->_event( `INFO_FINISHED` )
ui5_gav = client->_bind_edit( ui5_gav ) ).
ui5_gav = client->_bind_edit( ui5_gav ) ).
ENDIF.
client->popup_display( popup->stringify( ) ).

View File

@ -10,8 +10,8 @@ CLASS z2ui5_cl_pop_textedit DEFINITION
IMPORTING
i_stretch_active TYPE abap_bool DEFAULT abap_true
i_textarea TYPE string OPTIONAL
i_title type string default `Editor`
i_check_editable type abap_bool DEFAULT abap_false
i_title TYPE string DEFAULT `Editor`
i_check_editable TYPE abap_bool DEFAULT abap_false
PREFERRED PARAMETER i_textarea
RETURNING
VALUE(r_result) TYPE REF TO z2ui5_cl_pop_textedit.
@ -61,8 +61,8 @@ CLASS z2ui5_cl_pop_textedit IMPLEMENTATION.
icon = 'sap-icon://edit'
)->content(
)->text_area( growing = abap_true
editable = mv_check_editable
value = client->_bind_edit( ms_result-text )
editable = mv_check_editable
value = client->_bind_edit( ms_result-text )
)->get_parent(
)->buttons(
)->button(

View File

@ -80,19 +80,19 @@ CLASS z2ui5_cl_pop_to_select IMPLEMENTATION.
DATA(popup) = z2ui5_cl_xml_view=>factory_popup( ).
DATA(tab) = popup->table_select_dialog(
items = `{path:'`
items = `{path:'`
&& client->_bind_edit( val = <tab_out> path = abap_true )
&& `', sorter : { path : '` && to_upper( sort_field ) && `', descending : `
&& z2ui5_cl_util=>boolean_abap_2_json( me->descending )
&& ` } }`
cancel = client->_event( 'CANCEL' )
search = client->_event( val = 'SEARCH' t_arg = VALUE #( ( `${$parameters>/value}` ) ( `${$parameters>/clearButtonPressed}` ) ) )
confirm = client->_event( val = 'CONFIRM' t_arg = VALUE #( ( `${$parameters>/selectedContexts[0]/sPath}` ) ) )
growing = abap_true
contentwidth = content_width
contentheight = content_height
cancel = client->_event( 'CANCEL' )
search = client->_event( val = 'SEARCH' t_arg = VALUE #( ( `${$parameters>/value}` ) ( `${$parameters>/clearButtonPressed}` ) ) )
confirm = client->_event( val = 'CONFIRM' t_arg = VALUE #( ( `${$parameters>/selectedContexts[0]/sPath}` ) ) )
growing = abap_true
contentwidth = content_width
contentheight = content_height
growingthreshold = growing_threshold
title = title ).
title = title ).
DATA(lt_comp) = z2ui5_cl_util=>rtti_get_t_attri_by_any( <tab_out> ).
DELETE lt_comp WHERE name = 'ZZSELKZ'.

File diff suppressed because it is too large Load Diff

View File

@ -154,7 +154,7 @@ CLASS z2ui5_cl_xml_view_cc DEFINITION
RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view .
METHODS Dirty
METHODS dirty
IMPORTING
!isdirty TYPE clike OPTIONAL
RETURNING
@ -335,7 +335,7 @@ CLASS z2ui5_cl_xml_view_cc IMPLEMENTATION.
( n = `fileType` v = filetype )
( n = `checkDirectUpload` v = z2ui5_cl_util=>boolean_abap_2_json( checkdirectupload ) )
( n = `icon` v = icon )
( n = `enabled` v = z2ui5_cl_util=>boolean_abap_2_json( enabled ) ) ) ).
( n = `enabled` v = z2ui5_cl_util=>boolean_abap_2_json( enabled ) ) ) ).
ENDMETHOD.
@ -528,12 +528,12 @@ CLASS z2ui5_cl_xml_view_cc IMPLEMENTATION.
ENDMETHOD.
METHOD Dirty.
METHOD dirty.
result = mo_view.
mo_view->_generic( name = `Dirty`
ns = `z2ui5`
t_prop = VALUE #( ( n = `isDirty` v = z2ui5_cl_util=>boolean_abap_2_json( isDirty ) ) ) ).
t_prop = VALUE #( ( n = `isDirty` v = z2ui5_cl_util=>boolean_abap_2_json( isdirty ) ) ) ).
ENDMETHOD.