@@ -24,71 +24,61 @@ CLASS z2ui5_cl_demo_app_315 IMPLEMENTATION.
2424
2525 data (tab ) = page->table(
2626 items = `{TRAVEL>/BookingSupplement}`
27- growing = abap_true
28- ).
29-
30- tab->header_toolbar(
31- )->toolbar(
32- )->title( 'table with odata model' ).
33-
34- tab->columns(
35- )->column( )->text( 'TravelID' )->get_parent(
36- )->column( )->text( 'BookingID' )->get_parent(
37- )->column( )->text( 'BookingSupplementID' )->get_parent(
38- )->column( )->text( 'SupplementID' )->get_parent(
39- )->column( )->text( 'SupplementText' )->get_parent(
40- )->column( )->text( 'Price' )->get_parent(
41- )->column( )->text( 'CurrencyCode' )->get_parent(
42- ).
43-
44- tab->items( )->column_list_item( )->cells(
45- )->text( '{TRAVEL>TravelID}'
46- )->text( '{TRAVEL>BookingID}'
47- )->text( '{TRAVEL>BookingSupplementID}'
48- )->text( '{TRAVEL>SupplementID}'
49- )->text( '{TRAVEL>SupplementText}'
50- )->text( '{TRAVEL>Price}'
51- )->text( '{TRAVEL>CurrencyCode}'
52- ).
53-
54- tab = page->table(
55- items = `{FLIGHT>/Airport}`
56- growing = abap_true
57- ).
58-
59- tab->header_toolbar(
60- )->toolbar(
61- )->title( 'table with odata model' ).
62-
63- tab->columns(
64- )->column( )->text( 'AirportID' )->get_parent(
65- )->column( )->text( 'Name' )->get_parent(
66- )->column( )->text( 'City' )->get_parent(
67- )->column( )->text( 'CountryCode' )->get_parent(
68- ).
69-
70- tab->items( )->column_list_item( )->cells(
71- )->text( '{FLIGHT>AirportID}'
72- )->text( '{FLIGHT>Name}'
73- )->text( '{FLIGHT>City}'
74- )->text( '{FLIGHT>CountryCode}'
75- ).
76-
77- client->view_display( val = view->stringify( ) switchdefaultmodel = `` ).
78-
79- client->follow_up_action( client->_event_client(
80- val = z2ui5_if_client=>cs_event-set_odata_model
81- t_arg = value #(
82- ( `/sap/opu/odata/DMO/API_TRAVEL_U_V2/` )
83- ( `TRAVEL` )
84- ) ) ).
85-
86- client->follow_up_action( client->_event_client(
87- val = z2ui5_if_client=>cs_event-set_odata_model
88- t_arg = value #(
89- ( `/sap/opu/odata/DMO/ui_flight_r_v2/` )
90- ( `FLIGHT` )
91- ) ) ).
27+ growing = abap_true ).
28+
29+ tab->header_toolbar( )->toolbar(
30+ )->title( 'table with odata model' ).
31+
32+ tab->columns(
33+ )->column( )->text( 'TravelID' )->get_parent(
34+ )->column( )->text( 'BookingID' )->get_parent(
35+ )->column( )->text( 'BookingSupplementID' )->get_parent(
36+ )->column( )->text( 'SupplementID' )->get_parent(
37+ )->column( )->text( 'SupplementText' )->get_parent(
38+ )->column( )->text( 'Price' )->get_parent(
39+ )->column( )->text( 'CurrencyCode' )->get_parent( ).
40+
41+ tab->items( )->column_list_item( )->cells(
42+ )->text( '{TRAVEL>TravelID}'
43+ )->text( '{TRAVEL>BookingID}'
44+ )->text( '{TRAVEL>BookingSupplementID}'
45+ )->text( '{TRAVEL>SupplementID}'
46+ )->text( '{TRAVEL>SupplementText}'
47+ )->text( '{TRAVEL>Price}'
48+ )->text( '{TRAVEL>CurrencyCode}' ).
49+
50+ tab = page->table(
51+ items = `{FLIGHT>/Airport}`
52+ growing = abap_true ).
53+
54+ tab->header_toolbar( )->toolbar(
55+ )->title( 'table with odata model' ).
56+
57+ tab->columns(
58+ )->column( )->text( 'AirportID' )->get_parent(
59+ )->column( )->text( 'Name' )->get_parent(
60+ )->column( )->text( 'City' )->get_parent(
61+ )->column( )->text( 'CountryCode' )->get_parent( ).
62+
63+ tab->items( )->column_list_item( )->cells(
64+ )->text( '{FLIGHT>AirportID}'
65+ )->text( '{FLIGHT>Name}'
66+ )->text( '{FLIGHT>City}'
67+ )->text( '{FLIGHT>CountryCode}' ).
68+
69+ client->view_display( val = view->stringify( ) switchdefaultmodel = `` ).
70+
71+ client->follow_up_action( client->_event_client(
72+ val = z2ui5_if_client=>cs_event-set_odata_model
73+ t_arg = value #(
74+ ( `/sap/opu/odata/DMO/API_TRAVEL_U_V2/` )
75+ ( `TRAVEL` ) ) ) ).
76+
77+ client->follow_up_action( client->_event_client(
78+ val = z2ui5_if_client=>cs_event-set_odata_model
79+ t_arg = value #(
80+ ( `/sap/opu/odata/DMO/ui_flight_r_v2/` )
81+ ( `FLIGHT` ) ) ) ).
9282
9383 ENDIF .
9484
0 commit comments