Skip to content

Commit

Permalink
Update Sample 199 (#198)
Browse files Browse the repository at this point in the history
Co-authored-by: Viktor Hoffmann <[email protected]>
  • Loading branch information
abapsheep and Viktor Hoffmann authored May 17, 2024
1 parent 0493188 commit a19f53d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/z2ui5_cl_demo_app_199.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ CLASS z2ui5_cl_demo_app_199 DEFINITION
PUBLIC SECTION.
INTERFACES z2ui5_if_app.

DATA mt_table TYPE REF TO data.
DATA mt_table TYPE REF TO data.
DATA mv_counter TYPE string.

DATA mt_comp TYPE abap_component_tab.
DATA mt_comp TYPE abap_component_tab.

PROTECTED SECTION.
DATA client TYPE REF TO z2ui5_if_client.
Expand Down Expand Up @@ -70,7 +71,7 @@ CLASS z2ui5_cl_demo_app_199 IMPLEMENTATION.

DATA(table) = page->table( growing = 'true'
width = 'auto'
items = client->_bind( <tab> )
items = client->_bind_edit( <tab> )
* headertext = mv_table
).

Expand Down Expand Up @@ -119,7 +120,14 @@ CLASS z2ui5_cl_demo_app_199 IMPLEMENTATION.

ENDIF.

IF mv_counter <> lines( mt_table->* ) AND mv_counter IS NOT INITIAL.
client->message_toast_display( text = 'Frontend Lines <> Backend!' ).
ENDIF.

on_event( ).

mv_counter = lines( mt_table->* ).

ENDMETHOD.

METHOD get_data.
Expand Down

0 comments on commit a19f53d

Please sign in to comment.