Skip to content

Commit 5282e56

Browse files
committed
update
1 parent 69dea0b commit 5282e56

File tree

1 file changed

+9
-43
lines changed

1 file changed

+9
-43
lines changed

src/z2ui5_cl_demo_app_052.clas.abap

+9-43
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ CLASS z2ui5_cl_demo_app_052 DEFINITION PUBLIC.
66

77
TYPES:
88
BEGIN OF ty_s_tab,
9-
index TYPE string,
109
selkz TYPE abap_bool,
1110
product TYPE string,
1211
create_date TYPE string,
@@ -59,9 +58,7 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.
5958
)->button(
6059
text = 'details'
6160
press = client->_event( 'BUTTON_DETAILS' )
62-
type = 'Emphasized'
63-
).
64-
61+
type = 'Emphasized' ).
6562
client->popover_display( xml = lo_popover->stringify( ) by_id = id ).
6663

6764
ENDMETHOD.
@@ -85,39 +82,17 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.
8582

8683
page = page->dynamic_page( headerexpanded = abap_true headerpinned = abap_true ).
8784

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-
10185
DATA(cont) = page->content( ns = 'f' ).
102-
10386
DATA(tab) = cont->table( id = `tab` items = client->_bind_edit( val = mt_table ) ).
10487

105-
* tab->header_toolbar(
106-
* )->toolbar(
107-
* )->toolbar_spacer(
108-
* )->button(
109-
* icon = 'sap-icon://download'
110-
* press = client->_event( 'BUTTON_DOWNLOAD' )
111-
* ).
112-
11388
DATA(lo_columns) = tab->columns( ).
11489
lo_columns->column( )->text( text = `Product` ).
11590
lo_columns->column( )->text( text = `Date` ).
11691
lo_columns->column( )->text( text = `Name` ).
11792
lo_columns->column( )->text( text = `Location` ).
11893
lo_columns->column( )->text( text = `Quantity` ).
11994

120-
DATA(lo_cells) = tab->items( )->column_list_item( id = `item` ).
95+
DATA(lo_cells) = tab->items( )->column_list_item( ).
12196
lo_cells->link( id = `link` text = '{PRODUCT}' press = client->_event( val = `POPOVER_DETAIL` t_arg = VALUE #( ( `${$source>/id}` ) ( `${PRODUCT}` ) ) ) ).
12297
lo_cells->text( `{CREATE_DATE}` ).
12398
lo_cells->text( `{CREATE_BY}` ).
@@ -152,16 +127,11 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.
152127
mv_product = lt_arg[ 2 ].
153128
z2ui5_display_popover( lv_open_by_id ).
154129

155-
* WHEN 'BUTTON_START'.
156-
*
157-
* client->view_model_update( ).
158-
159130
WHEN 'BACK'.
160131
client->nav_app_leave( client->get_app( client->get( )-s_draft-id_prev_app_stack ) ).
161132

162133
ENDCASE.
163134

164-
165135
ENDMETHOD.
166136

167137

@@ -174,53 +144,49 @@ CLASS z2ui5_cl_demo_app_052 IMPLEMENTATION.
174144
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
175145
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
176146
( 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 )
178148
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
179149
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
180150
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
181151
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
182152
( 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 )
184154
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
185155
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
186156
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
187157
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
188158
( 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 )
190160
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
191161
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
192162
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
193163
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
194164
( 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 )
196166
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
197167
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
198168
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
199169
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
200170
( 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 )
202172
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
203173
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
204174
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
205175
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
206176
( 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 )
208178
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
209179
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
210180
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
211181
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
212182
( 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 )
214184
( product = 'chair' create_date = `01.01.2022` create_by = `James` storage_location = `AREA_001` quantity = 123 )
215185
( product = 'sofa' create_date = `01.05.2021` create_by = `Simone` storage_location = `AREA_001` quantity = 700 )
216186
( product = 'computer' create_date = `27.01.2023` create_by = `Theo` storage_location = `AREA_001` quantity = 200 )
217187
( product = 'printer' create_date = `01.01.2023` create_by = `Hannah` storage_location = `AREA_001` quantity = 90 )
218188
( product = 'table2' create_date = `01.01.2023` create_by = `Julia` storage_location = `AREA_001` quantity = 110 )
219189
).
220190

221-
LOOP AT mt_table REFERENCE INTO DATA(lr_tab).
222-
lr_tab->index = sy-tabix.
223-
ENDLOOP.
224-
225191
ENDMETHOD.
226192
ENDCLASS.

0 commit comments

Comments
 (0)