mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
Update (#1806)
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:
parent
cfd472f8f4
commit
4e363b4140
|
@ -985,15 +985,16 @@ CLASS z2ui5_cl_util IMPLEMENTATION.
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
|
|
||||||
result = lo_struct->get_components( ).
|
DATA(comps) = lo_struct->get_components( ).
|
||||||
|
|
||||||
LOOP AT result REFERENCE INTO DATA(lr_comp)
|
LOOP AT comps REFERENCE INTO DATA(lr_comp).
|
||||||
WHERE as_include = abap_true.
|
|
||||||
|
|
||||||
DATA(lt_attri) = rtti_get_t_attri_by_include( lr_comp->type ).
|
IF lr_comp->as_include = abap_false.
|
||||||
|
APPEND lr_comp->* TO result.
|
||||||
DELETE result.
|
ELSE.
|
||||||
INSERT LINES OF lt_attri INTO TABLE result.
|
DATA(lt_attri) = rtti_get_t_attri_by_include( lr_comp->type ).
|
||||||
|
APPEND LINES OF lt_attri TO result.
|
||||||
|
ENDIF.
|
||||||
ENDLOOP.
|
ENDLOOP.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
|
@ -172,6 +172,14 @@ CLASS z2ui5_cl_xml_view DEFINITION
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
|
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
|
METHODS table
|
||||||
IMPORTING
|
IMPORTING
|
||||||
id TYPE clike OPTIONAL
|
id TYPE clike OPTIONAL
|
||||||
|
@ -11122,4 +11130,15 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
|
||||||
|
|
||||||
ENDMETHOD.
|
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.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user