@@ -6,7 +6,6 @@ CLASS z2ui5_cl_demo_app_052 DEFINITION PUBLIC.
6
6
7
7
TYPES :
8
8
BEGIN OF ty_s_tab,
9
- index TYPE string ,
10
9
selkz TYPE abap_bool ,
11
10
product TYPE string ,
12
11
create_date TYPE string ,
@@ -59,9 +58,7 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.
59
58
)->button(
60
59
text = 'details'
61
60
press = client->_event( 'BUTTON_DETAILS' )
62
- type = 'Emphasized'
63
- ).
64
-
61
+ type = 'Emphasized' ).
65
62
client->popover_display( xml = lo_popover->stringify( ) by_id = id ).
66
63
67
64
ENDMETHOD .
@@ -85,39 +82,17 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.
85
82
86
83
page = page->dynamic_page( headerexpanded = abap_true headerpinned = abap_true ).
87
84
88
- * DATA(header_title) = page->title( ns = 'f' )->get( )->dynamic_page_title( ).
89
- * header_title->heading( ns = 'f' )->hbox( )->title( `Item Popover` ).
90
- * header_title->expanded_content( 'f' ).
91
- * header_title->snapped_content( ns = 'f' ).
92
- *
93
- * DATA(lo_box) = page->header( )->dynamic_page_header( pinnable = abap_true
94
- * )->flex_box( alignitems = `Start` justifycontent = `SpaceBetween` )->flex_box( alignItems = `Start` ).
95
- *
96
- * lo_box->get_parent( )->hbox( justifycontent = `End` )->button(
97
- * text = `Go`
98
- * press = client->_event( `BUTTON_START` )
99
- * type = `Emphasized` ).
100
-
101
85
DATA (cont ) = page->content( ns = 'f' ).
102
-
103
86
DATA (tab ) = cont->table( id = `tab` items = client->_bind_edit( val = mt_table ) ).
104
87
105
- * tab->header_toolbar(
106
- * )->toolbar(
107
- * )->toolbar_spacer(
108
- * )->button(
109
- * icon = 'sap-icon://download'
110
- * press = client->_event( 'BUTTON_DOWNLOAD' )
111
- * ).
112
-
113
88
DATA (lo_columns ) = tab->columns( ).
114
89
lo_columns->column( )->text( text = `Product` ).
115
90
lo_columns->column( )->text( text = `Date` ).
116
91
lo_columns->column( )->text( text = `Name` ).
117
92
lo_columns->column( )->text( text = `Location` ).
118
93
lo_columns->column( )->text( text = `Quantity` ).
119
94
120
- DATA (lo_cells ) = tab->items( )->column_list_item( id = `item` ).
95
+ DATA (lo_cells ) = tab->items( )->column_list_item( ).
121
96
lo_cells->link( id = `link` text = '{PRODUCT}' press = client->_event( val = `POPOVER_DETAIL` t_arg = VALUE #( ( `${$source>/id}` ) ( `${PRODUCT}` ) ) ) ).
122
97
lo_cells->text( `{CREATE_DATE}` ).
123
98
lo_cells->text( `{CREATE_BY}` ).
@@ -152,16 +127,11 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.
152
127
mv_product = lt_arg[ 2 ].
153
128
z2ui5_display_popover( lv_open_by_id ).
154
129
155
- * WHEN 'BUTTON_START'.
156
- *
157
- * client->view_model_update( ).
158
-
159
130
WHEN 'BACK' .
160
131
client->nav_app_leave( client->get_app( client->get( )-s_draft-id_prev_app_stack ) ).
161
132
162
133
ENDCASE .
163
134
164
-
165
135
ENDMETHOD .
166
136
167
137
@@ -174,53 +144,49 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.
174
144
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
175
145
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
176
146
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
177
- ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
147
+ ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
178
148
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
179
149
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
180
150
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
181
151
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
182
152
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
183
- ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
153
+ ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
184
154
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
185
155
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
186
156
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
187
157
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
188
158
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
189
- ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
159
+ ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
190
160
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
191
161
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
192
162
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
193
163
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
194
164
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
195
- ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
165
+ ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
196
166
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
197
167
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
198
168
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
199
169
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
200
170
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
201
- ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
171
+ ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
202
172
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
203
173
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
204
174
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
205
175
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
206
176
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
207
- ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
177
+ ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
208
178
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
209
179
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
210
180
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
211
181
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
212
182
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
213
- ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
183
+ ( product = 'table' create_date = `01.01.2023` create_by = `Peter` storage_location = `AREA_001` quantity = 400 )
214
184
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
215
185
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
216
186
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
217
187
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
218
188
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
219
189
).
220
190
221
- LOOP AT mt_table REFERENCE INTO DATA (lr_tab ).
222
- lr_tab->index = sy -tabix .
223
- ENDLOOP .
224
-
225
191
ENDMETHOD .
226
192
ENDCLASS .
0 commit comments