Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oblomov-dev committed Feb 22, 2024
1 parent 7642db1 commit 970b4b3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 23 deletions.
43 changes: 25 additions & 18 deletions src/z2ui5_cl_demo_app_000.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -708,8 +700,6 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).



panel = page->panel(
expandable = abap_false
expanded = abap_true
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
12 changes: 7 additions & 5 deletions src/z2ui5_cl_demo_app_006.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 970b4b3

Please sign in to comment.