Minor fix in rtti_get_t_attri_by_any
Added overflow_toolbar_layout_data to z2ui5_cl_xml_view

Co-authored-by: Viktor Hoffmann <Viktor.Hoffmann@swisskrono.com>
This commit is contained in:
abapsheep 2025-03-24 14:43:30 +01:00 committed by GitHub
parent cfd472f8f4
commit 4e363b4140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 7 deletions

View File

@ -985,15 +985,16 @@ CLASS z2ui5_cl_util IMPLEMENTATION.
ENDTRY.
ENDTRY.
result = lo_struct->get_components( ).
DATA(comps) = lo_struct->get_components( ).
LOOP AT result REFERENCE INTO DATA(lr_comp)
WHERE as_include = abap_true.
LOOP AT comps REFERENCE INTO DATA(lr_comp).
IF lr_comp->as_include = abap_false.
APPEND lr_comp->* TO result.
ELSE.
DATA(lt_attri) = rtti_get_t_attri_by_include( lr_comp->type ).
DELETE result.
INSERT LINES OF lt_attri INTO TABLE result.
APPEND LINES OF lt_attri TO result.
ENDIF.
ENDLOOP.
ENDMETHOD.

View File

@ -172,6 +172,14 @@ CLASS z2ui5_cl_xml_view DEFINITION
RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
METHODS overflow_toolbar_layout_data
IMPORTING
priority TYPE clike OPTIONAL
group TYPE clike OPTIONAL
closeOverflowOnInteraction TYPE clike OPTIONAL
RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
METHODS table
IMPORTING
id TYPE clike OPTIONAL
@ -11122,4 +11130,15 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
ENDMETHOD.
METHOD overflow_toolbar_layout_data.
result = _generic(
name = `OverflowToolbarLayoutData`
t_prop = VALUE #(
( n = `closeOverflowOnInteraction` v = z2ui5_cl_util=>boolean_abap_2_json( closeOverflowOnInteraction ) )
( n = `group` v = group )
( n = `priority` v = priority ) ) ).
ENDMETHOD.
ENDCLASS.