From 224eff9eab363164a9a01fa937b5b7af80df0991 Mon Sep 17 00:00:00 2001 From: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com> Date: Sun, 8 Dec 2024 11:56:36 +0100 Subject: [PATCH] Update z2ui5_cl_demo_app_315.clas.abap (#456) --- src/z2ui5_cl_demo_app_315.clas.abap | 120 +++++++++++++--------------- 1 file changed, 55 insertions(+), 65 deletions(-) diff --git a/src/z2ui5_cl_demo_app_315.clas.abap b/src/z2ui5_cl_demo_app_315.clas.abap index b5c7665..74e6e5f 100644 --- a/src/z2ui5_cl_demo_app_315.clas.abap +++ b/src/z2ui5_cl_demo_app_315.clas.abap @@ -24,71 +24,61 @@ CLASS z2ui5_cl_demo_app_315 IMPLEMENTATION. data(tab) = page->table( items = `{TRAVEL>/BookingSupplement}` - growing = abap_true - ). - - tab->header_toolbar( - )->toolbar( - )->title( 'table with odata model' ). - - tab->columns( - )->column( )->text( 'TravelID' )->get_parent( - )->column( )->text( 'BookingID' )->get_parent( - )->column( )->text( 'BookingSupplementID' )->get_parent( - )->column( )->text( 'SupplementID' )->get_parent( - )->column( )->text( 'SupplementText' )->get_parent( - )->column( )->text( 'Price' )->get_parent( - )->column( )->text( 'CurrencyCode' )->get_parent( - ). - - tab->items( )->column_list_item( )->cells( - )->text( '{TRAVEL>TravelID}' - )->text( '{TRAVEL>BookingID}' - )->text( '{TRAVEL>BookingSupplementID}' - )->text( '{TRAVEL>SupplementID}' - )->text( '{TRAVEL>SupplementText}' - )->text( '{TRAVEL>Price}' - )->text( '{TRAVEL>CurrencyCode}' - ). - - tab = page->table( - items = `{FLIGHT>/Airport}` - growing = abap_true - ). - - tab->header_toolbar( - )->toolbar( - )->title( 'table with odata model' ). - - tab->columns( - )->column( )->text( 'AirportID' )->get_parent( - )->column( )->text( 'Name' )->get_parent( - )->column( )->text( 'City' )->get_parent( - )->column( )->text( 'CountryCode' )->get_parent( - ). - - tab->items( )->column_list_item( )->cells( - )->text( '{FLIGHT>AirportID}' - )->text( '{FLIGHT>Name}' - )->text( '{FLIGHT>City}' - )->text( '{FLIGHT>CountryCode}' - ). - - client->view_display( val = view->stringify( ) switchdefaultmodel = `` ). - - client->follow_up_action( client->_event_client( - val = z2ui5_if_client=>cs_event-set_odata_model - t_arg = value #( - ( `/sap/opu/odata/DMO/API_TRAVEL_U_V2/` ) - ( `TRAVEL` ) - ) ) ). - - client->follow_up_action( client->_event_client( - val = z2ui5_if_client=>cs_event-set_odata_model - t_arg = value #( - ( `/sap/opu/odata/DMO/ui_flight_r_v2/` ) - ( `FLIGHT` ) - ) ) ). + growing = abap_true ). + + tab->header_toolbar( )->toolbar( + )->title( 'table with odata model' ). + + tab->columns( + )->column( )->text( 'TravelID' )->get_parent( + )->column( )->text( 'BookingID' )->get_parent( + )->column( )->text( 'BookingSupplementID' )->get_parent( + )->column( )->text( 'SupplementID' )->get_parent( + )->column( )->text( 'SupplementText' )->get_parent( + )->column( )->text( 'Price' )->get_parent( + )->column( )->text( 'CurrencyCode' )->get_parent( ). + + tab->items( )->column_list_item( )->cells( + )->text( '{TRAVEL>TravelID}' + )->text( '{TRAVEL>BookingID}' + )->text( '{TRAVEL>BookingSupplementID}' + )->text( '{TRAVEL>SupplementID}' + )->text( '{TRAVEL>SupplementText}' + )->text( '{TRAVEL>Price}' + )->text( '{TRAVEL>CurrencyCode}' ). + + tab = page->table( + items = `{FLIGHT>/Airport}` + growing = abap_true ). + + tab->header_toolbar( )->toolbar( + )->title( 'table with odata model' ). + + tab->columns( + )->column( )->text( 'AirportID' )->get_parent( + )->column( )->text( 'Name' )->get_parent( + )->column( )->text( 'City' )->get_parent( + )->column( )->text( 'CountryCode' )->get_parent( ). + + tab->items( )->column_list_item( )->cells( + )->text( '{FLIGHT>AirportID}' + )->text( '{FLIGHT>Name}' + )->text( '{FLIGHT>City}' + )->text( '{FLIGHT>CountryCode}' ). + + client->view_display( val = view->stringify( ) switchdefaultmodel = `` ). + + client->follow_up_action( client->_event_client( + val = z2ui5_if_client=>cs_event-set_odata_model + t_arg = value #( + ( `/sap/opu/odata/DMO/API_TRAVEL_U_V2/` ) + ( `TRAVEL` ) ) ) ). + + client->follow_up_action( client->_event_client( + val = z2ui5_if_client=>cs_event-set_odata_model + t_arg = value #( + ( `/sap/opu/odata/DMO/ui_flight_r_v2/` ) + ( `FLIGHT` ) ) ) ). ENDIF.