From 970b4b3f7103dbfd14587bafee21a49e708d38d2 Mon Sep 17 00:00:00 2001 From: "oblomov-dev@outlook.com" Date: Thu, 22 Feb 2024 08:01:50 +0000 Subject: [PATCH] fixes --- src/z2ui5_cl_demo_app_000.clas.abap | 43 +++++++++++++++++------------ src/z2ui5_cl_demo_app_006.clas.abap | 12 ++++---- 2 files changed, 32 insertions(+), 23 deletions(-) diff --git a/src/z2ui5_cl_demo_app_000.clas.abap b/src/z2ui5_cl_demo_app_000.clas.abap index 50af67d7..2c9fe031 100644 --- a/src/z2ui5_cl_demo_app_000.clas.abap +++ b/src/z2ui5_cl_demo_app_000.clas.abap @@ -95,7 +95,7 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION. ). panel->generic_tile( - header = '(1) Binding I' + header = 'Binding I' subheader = 'Simple - Send values to the backend' press = client->_event( 'Z2UI5_CL_DEMO_APP_001' ) mode = 'LineMode' @@ -111,28 +111,28 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION. ). panel->generic_tile( - header = '(144) Binding III' + header = 'Binding III' subheader = 'Table Cell Level' press = client->_event( 'z2ui5_cl_demo_app_144' ) mode = 'LineMode' class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' ). panel->generic_tile( - header = '(4) Event I' + header = 'Event I' subheader = 'Handle events & change the view' press = client->_event( 'Z2UI5_CL_DEMO_APP_004' ) mode = 'LineMode' class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' ). panel->generic_tile( - header = '(24) Event II' + header = 'Event II' subheader = 'Call other apps & exchange data' press = client->_event( 'Z2UI5_CL_DEMO_APP_024' ) mode = 'LineMode' class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' ). panel->generic_tile( - header = '(167) Event III' + header = 'Event III' subheader = 'Additional Infos with t_args' press = client->_event( 'Z2UI5_CL_DEMO_APP_167' ) mode = 'LineMode' @@ -629,14 +629,6 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION. class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' ). - panel->generic_tile( - header = 'Dynamic Types' - subheader = 'Use RTTI to send tables to the frontend' - press = client->_event( 'Z2UI5_CL_DEMO_APP_061' ) - mode = 'LineMode' - class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' - ). - panel->generic_tile( header = 'Visualization' subheader = 'Object Number, Object States & Tab Filter' @@ -708,8 +700,6 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION. class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' ). - - panel = page->panel( expandable = abap_false expanded = abap_true @@ -901,6 +891,23 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION. class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' ). + + panel = page->panel( + expandable = abap_false + expanded = abap_true + headertext = `RTTI - Data Typing with S-RTTI` + ). + + + panel->generic_tile( + header = 'Dynamic Types' + subheader = 'Use S-RTTI to send tables to the frontend' + press = client->_event( 'Z2UI5_CL_DEMO_APP_061' ) + mode = 'LineMode' + class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' + ). + + panel = page->panel( expandable = abap_false expanded = abap_true @@ -938,14 +945,14 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION. page = page2->panel( expandable = abap_true expanded = client->_bind_edit( ms_check_expanded-custom_controls ) - headertext = `Custom Controls, Device Capabilities` + headertext = `Custom Controls & Device Capabilities` ). panel = page->panel( expandable = abap_false expanded = abap_true - headertext = `Custom Control - File API` + headertext = `File API` ). panel->generic_tile( @@ -976,7 +983,7 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION. panel = page->panel( expandable = abap_false expanded = abap_true - headertext = `Custom Control - More` + headertext = `More` ). panel->generic_tile( diff --git a/src/z2ui5_cl_demo_app_006.clas.abap b/src/z2ui5_cl_demo_app_006.clas.abap index 7dfbecbf..248df8d3 100644 --- a/src/z2ui5_cl_demo_app_006.clas.abap +++ b/src/z2ui5_cl_demo_app_006.clas.abap @@ -27,17 +27,19 @@ CLASS z2ui5_cl_demo_app_006 DEFINITION PUBLIC. ENDCLASS. - CLASS z2ui5_cl_demo_app_006 IMPLEMENTATION. METHOD refresh_data. DO 5000 TIMES. - DATA(ls_row) = VALUE ty_row( count = sy-index value = 'red' - info = COND #( WHEN sy-index < 50 THEN 'completed' ELSE 'uncompleted' ) - descr = 'this is a description' checkbox = abap_true - percentage = COND #( WHEN sy-index <= 100 THEN sy-index ELSE '100' ) + DATA(ls_row) = VALUE ty_row( + count = sy-index + value = 'red' +* info = COND #( WHEN sy-index < 50 THEN 'completed' ELSE 'uncompleted' ) + descr = 'this is a description' + checkbox = abap_true +* percentage = COND #( WHEN sy-index <= 100 THEN sy-index ELSE '100' ) valuecolor = `Good` ). INSERT ls_row INTO TABLE t_tab.