Skip to content

Commit

Permalink
model samples (#202)
Browse files Browse the repository at this point in the history
* model samples

* update info cc with device info
  • Loading branch information
oblomov-dev authored May 24, 2024
1 parent b5f79d3 commit 6eb66b8
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 70 deletions.
141 changes: 74 additions & 67 deletions src/z2ui5_cl_demo_app_000.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
PROTECTED SECTION.
PRIVATE SECTION.

ENDCLASS.
ENDCLASS.



CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.


METHOD z2ui5_if_app~main.
Expand Down Expand Up @@ -151,13 +151,13 @@ CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom' ).

panel->generic_tile(
header = 'Event IV'
subheader = `Facet Filter - T_arg with Objects`
press = client->_event( 'Z2UI5_CL_DEMO_APP_197' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).
panel->generic_tile(
header = 'Event IV'
subheader = `Facet Filter - T_arg with Objects`
press = client->_event( 'Z2UI5_CL_DEMO_APP_197' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Follow Up Action'
Expand All @@ -183,13 +183,13 @@ CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Timer II'
subheader = 'Set Loading Indicator while Server Request'
press = client->_event( 'Z2UI5_CL_DEMO_APP_064' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).
panel->generic_tile(
header = 'Timer II'
subheader = 'Set Loading Indicator while Server Request'
press = client->_event( 'Z2UI5_CL_DEMO_APP_064' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'New Tab'
Expand Down Expand Up @@ -453,12 +453,12 @@ CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Column Menu'
press = client->_event( 'z2ui5_cl_demo_app_183' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).
panel->generic_tile(
header = 'Column Menu'
press = client->_event( 'z2ui5_cl_demo_app_183' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'ui.Table I'
Expand Down Expand Up @@ -835,7 +835,7 @@ CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.


panel->generic_tile(
header = 'Dynamic Objects'
header = 'Dynamic Objects I'
subheader = 'Use S-RTTI to render different Subapps'
press = client->_event( 'Z2UI5_CL_DEMO_APP_131' )
mode = 'LineMode'
Expand All @@ -850,37 +850,14 @@ CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Dynamic Objects III'
subheader = 'User Generic Data Refs in Subapps'
press = client->_event( 'Z2UI5_CL_DEMO_APP_185' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Dynamic Objects IV'
subheader = 'User Generic Tab Refs in Subapps'
press = client->_event( 'Z2UI5_CL_DEMO_APP_191' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Dynamic Objects V'
subheader = 'User Generic Struc Refs'
press = client->_event( 'Z2UI5_CL_DEMO_APP_195' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).
panel->generic_tile(
header = 'Dynamic Objects III'
subheader = 'User Generic Data Refs in Subapps'
press = client->_event( 'Z2UI5_CL_DEMO_APP_185' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Dynamic Objects VI'
subheader = 'User Generic Struc Refs with refresh'
press = client->_event( 'Z2UI5_CL_DEMO_APP_199' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).


panel = page->panel(
Expand Down Expand Up @@ -1360,20 +1337,20 @@ CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Network Graph'
press = client->_event( 'z2ui5_cl_demo_app_182' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).
panel->generic_tile(
header = 'Network Graph'
press = client->_event( 'z2ui5_cl_demo_app_182' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Status Indicator Library'
subheader = ``
press = client->_event( 'Z2UI5_CL_DEMO_APP_196' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).
panel->generic_tile(
header = 'Status Indicator Library'
subheader = ``
press = client->_event( 'Z2UI5_CL_DEMO_APP_196' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel = page->panel(
expandable = abap_false
Expand Down Expand Up @@ -1472,6 +1449,36 @@ CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel = page->panel(
expandable = abap_false
expanded = abap_true
headertext = `For Testing only...`
).

panel->generic_tile(
header = 'Model I'
subheader = 'RTTI Data'
press = client->_event( 'Z2UI5_CL_DEMO_APP_191' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Model I'
subheader = 'RTTI Data'
press = client->_event( 'Z2UI5_CL_DEMO_APP_195' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel->generic_tile(
header = 'Model II'
subheader = 'RTTI Data'
press = client->_event( 'Z2UI5_CL_DEMO_APP_199' )
mode = 'LineMode'
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
).

panel = page->panel(
expandable = abap_false
expanded = abap_true
Expand All @@ -1490,4 +1497,4 @@ CLASS Z2UI5_CL_DEMO_APP_000 IMPLEMENTATION.
client->view_display( page->stringify( ) ).

ENDMETHOD.
ENDCLASS.
ENDCLASS.
6 changes: 5 additions & 1 deletion src/z2ui5_cl_demo_app_122.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ CLASS z2ui5_cl_demo_app_122 DEFINITION
DATA device_systemtype TYPE string.
DATA device_os TYPE string.
DATA device_browser TYPE string.
DATA check_initialized TYPE abap_bool .
DATA check_initialized TYPE abap_bool.
DATA device_system_desktop TYPE abap_bool.

PROTECTED SECTION.
DATA client TYPE REF TO z2ui5_if_client.
Expand Down Expand Up @@ -47,6 +48,7 @@ CLASS z2ui5_cl_demo_app_122 IMPLEMENTATION.
ui5_gav = client->_bind_edit( ui5_gav )
ui5_theme = client->_bind_edit( ui5_theme )
ui5_version = client->_bind_edit( ui5_version )
device_system_desktop = client->_bind_edit( device_system_desktop )
)->simple_form( title = 'Information' editable = abap_true
)->content( 'form'
)->label( 'device_browser'
Expand All @@ -61,6 +63,8 @@ CLASS z2ui5_cl_demo_app_122 IMPLEMENTATION.
)->input( client->_bind_edit( ui5_theme )
)->label( `ui5_version`
)->input( client->_bind_edit( ui5_version )
)->label( `device_system_desktop`
)->input( client->_bind_edit( device_system_desktop )
)->stringify( ) ).

ENDMETHOD.
Expand Down
6 changes: 4 additions & 2 deletions src/z2ui5_cl_demo_app_199.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ CLASS z2ui5_cl_demo_app_199 IMPLEMENTATION.
on_init( ).
ENDIF.

IF mv_counter <> lines( mt_table->* ) AND mv_counter IS NOT INITIAL.
FIELD-SYMBOLS <tab> TYPE STANDARD TABLE.
ASSIGN mt_table->* TO <tab>.
IF mv_counter <> lines( <tab> ) AND mv_counter IS NOT INITIAL.
client->message_box_display( text = 'Frontend Lines <> Backend!' type = 'error' ).
ENDIF.

on_event( ).
mv_counter = lines( mt_table->* ).
mv_counter = lines( <tab> ).

ENDMETHOD.

Expand Down

0 comments on commit 6eb66b8

Please sign in to comment.