From 0f02f909147ddfb7c780f0432552e65c1a103b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Mil=C3=A1n?= <36721657+francisco-milan@users.noreply.github.com> Date: Sun, 29 Sep 2024 02:36:09 -0600 Subject: [PATCH] Add "color_palette" method (#1462) --- src/02/z2ui5_cl_xml_view.clas.abap | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/02/z2ui5_cl_xml_view.clas.abap b/src/02/z2ui5_cl_xml_view.clas.abap index e139ca1c..bf5c1017 100644 --- a/src/02/z2ui5_cl_xml_view.clas.abap +++ b/src/02/z2ui5_cl_xml_view.clas.abap @@ -190,6 +190,11 @@ CLASS z2ui5_cl_xml_view DEFINITION link TYPE clike OPTIONAL RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view. + METHODS color_palette + IMPORTING !ns TYPE clike OPTIONAL + colorselect TYPE clike OPTIONAL + RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view. + METHODS auto IMPORTING !ns TYPE clike OPTIONAL rowcontentheight TYPE clike OPTIONAL @@ -9113,7 +9118,10 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION. METHOD toolbar. - DATA(lv_name) = COND #( WHEN ns = 'table' THEN 'toolbar' ELSE `Toolbar` ). + DATA(lv_name) = COND #( + WHEN ns = 'table' THEN 'toolbar' + WHEN ns = 'form' THEN 'toolbar' + ELSE `Toolbar` ). result = _generic( name = lv_name ns = ns t_prop = VALUE #( ( n = `active` v = z2ui5_cl_util=>boolean_abap_2_json( active ) ) @@ -10128,4 +10136,12 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION. name = `currentLocation` t_prop = VALUE #( ( n = `link` v = link ) ) ). ENDMETHOD. + + + METHOD color_palette. + result = _generic( + ns = ns + name = `ColorPalette` + t_prop = VALUE #( ( n = `colorSelect` v = colorselect ) ) ). + ENDMETHOD. ENDCLASS.