debuggin tools fix + toggleState on tree (#992)

This commit is contained in:
choper725 2024-03-05 00:57:03 +02:00 committed by GitHub
parent 8615e1aaba
commit d63862b286
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -71,7 +71,7 @@ CLASS Z2UI5_CL_FW_CC_DEBUGGING_TOOLS IMPLEMENTATION.
` return;` && |\n| &&
` }` && |\n| &&
` if (selItem == 'VIEW') {` && |\n| &&
` if( !sap?.z2ui5?.oView?.mProperties?.viewContent === 'undefined' ) {` && |\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| &&

View File

@ -1974,6 +1974,7 @@ CLASS z2ui5_cl_xml_view DEFINITION
!includeiteminselection TYPE abap_bool OPTIONAL
!inset TYPE abap_bool OPTIONAL
!width TYPE clike OPTIONAL
!toggleopenstate TYPE clike OPTIONAL
RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view .
METHODS standard_tree_item
@ -3570,7 +3571,7 @@ ENDCLASS.
CLASS z2ui5_cl_xml_view IMPLEMENTATION.
CLASS Z2UI5_CL_XML_VIEW IMPLEMENTATION.
METHOD actions.
@ -7533,6 +7534,7 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
( n = `headerText` v = headertext )
( n = `footerText` v = footertext )
( n = `mode` v = mode )
( n = `toggleOpenState` v = toggleopenstate )
( n = `width` v = width )
( n = `includeItemInSelection` v = z2ui5_cl_util=>boolean_abap_2_json( includeiteminselection ) )
( n = `inset` v = z2ui5_cl_util=>boolean_abap_2_json( inset ) )