Skip to content

Commit a19f53d

Browse files
abapsheepViktor Hoffmann
and
Viktor Hoffmann
authored
Update Sample 199 (#198)
Co-authored-by: Viktor Hoffmann <[email protected]>
1 parent 0493188 commit a19f53d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/z2ui5_cl_demo_app_199.clas.abap

+11-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ CLASS z2ui5_cl_demo_app_199 DEFINITION
55
PUBLIC SECTION.
66
INTERFACES z2ui5_if_app.
77

8-
DATA mt_table TYPE REF TO data.
8+
DATA mt_table TYPE REF TO data.
9+
DATA mv_counter TYPE string.
910

10-
DATA mt_comp TYPE abap_component_tab.
11+
DATA mt_comp TYPE abap_component_tab.
1112

1213
PROTECTED SECTION.
1314
DATA client TYPE REF TO z2ui5_if_client.
@@ -70,7 +71,7 @@ CLASS z2ui5_cl_demo_app_199 IMPLEMENTATION.
7071

7172
DATA(table) = page->table( growing = 'true'
7273
width = 'auto'
73-
items = client->_bind( <tab> )
74+
items = client->_bind_edit( <tab> )
7475
* headertext = mv_table
7576
).
7677

@@ -119,7 +120,14 @@ CLASS z2ui5_cl_demo_app_199 IMPLEMENTATION.
119120

120121
ENDIF.
121122

123+
IF mv_counter <> lines( mt_table->* ) AND mv_counter IS NOT INITIAL.
124+
client->message_toast_display( text = 'Frontend Lines <> Backend!' ).
125+
ENDIF.
126+
122127
on_event( ).
128+
129+
mv_counter = lines( mt_table->* ).
130+
123131
ENDMETHOD.
124132

125133
METHOD get_data.

0 commit comments

Comments
 (0)