Skip to content

Commit 7810f16

Browse files
Viktor HoffmannViktor Hoffmann
authored andcommitted
Update
Minor fix in rtti_get_t_attri_by_any Added overflow_toolbar_layout_data to z2ui5_cl_xml_view
1 parent cfd472f commit 7810f16

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

src/00/03/z2ui5_cl_util.clas.abap

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -985,15 +985,16 @@ CLASS z2ui5_cl_util IMPLEMENTATION.
985985
ENDTRY.
986986
ENDTRY.
987987

988-
result = lo_struct->get_components( ).
989-
990-
LOOP AT result REFERENCE INTO DATA(lr_comp)
991-
WHERE as_include = abap_true.
988+
DATA(comps) = lo_struct->get_components( ).
992989

993-
DATA(lt_attri) = rtti_get_t_attri_by_include( lr_comp->type ).
990+
LOOP AT comps REFERENCE INTO DATA(lr_comp).
994991

995-
DELETE result.
996-
INSERT LINES OF lt_attri INTO TABLE result.
992+
IF lr_comp->as_include = abap_false.
993+
APPEND lr_comp->* TO result.
994+
ELSE.
995+
DATA(lt_attri) = rtti_get_t_attri_by_include( lr_comp->type ).
996+
APPEND LINES OF lt_attri TO result.
997+
ENDIF.
997998
ENDLOOP.
998999

9991000
ENDMETHOD.

src/02/z2ui5_cl_xml_view.clas.abap

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ CLASS z2ui5_cl_xml_view DEFINITION
172172
RETURNING
173173
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
174174

175+
METHODS overflow_toolbar_layout_data
176+
IMPORTING
177+
priority TYPE clike OPTIONAL
178+
group TYPE clike OPTIONAL
179+
closeOverflowOnInteraction TYPE clike OPTIONAL
180+
RETURNING
181+
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
182+
175183
METHODS table
176184
IMPORTING
177185
id TYPE clike OPTIONAL
@@ -11122,4 +11130,15 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
1112211130

1112311131
ENDMETHOD.
1112411132

11133+
METHOD overflow_toolbar_layout_data.
11134+
11135+
result = _generic(
11136+
name = `OverflowToolbarLayoutData`
11137+
t_prop = VALUE #(
11138+
( n = `closeOverflowOnInteraction` v = z2ui5_cl_util=>boolean_abap_2_json( closeOverflowOnInteraction ) )
11139+
( n = `group` v = group )
11140+
( n = `priority` v = priority ) ) ).
11141+
11142+
ENDMETHOD.
11143+
1112511144
ENDCLASS.

0 commit comments

Comments
 (0)