Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
oblomov-dev committed Feb 22, 2024
1 parent 58aa890 commit 7642db1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 28 deletions.
7 changes: 0 additions & 7 deletions src/z2ui5_cl_demo_app_084.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,6 @@ CLASS Z2UI5_CL_DEMO_APP_084 IMPLEMENTATION.
title = 'abap2UI5 - Input Validation'
navbuttonpress = client->_event( val = 'BACK' check_view_destroy = abap_true )
shownavbutton = abap_true
)->header_content(
)->link(
text = 'Demo' target = '_blank'
href = `https://twitter.com/abap2UI5/status/1647246029828268032`
)->link(
text = 'Source_Code' target = '_blank'
href = z2ui5_cl_demo_utility=>factory( client )->app_get_url_source_code( )
)->get_parent( ).

"string
Expand Down
29 changes: 13 additions & 16 deletions src/z2ui5_cl_demo_app_173.clas.abap
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
class Z2UI5_CL_DEMO_APP_173 definition
public
create public .
CLASS z2ui5_cl_demo_app_173 DEFINITION
PUBLIC
CREATE PUBLIC .

public section.
PUBLIC SECTION.

interfaces IF_SERIALIZABLE_OBJECT .
interfaces Z2UI5_IF_APP .

types: begin of ty_s_data,
name type string,
END OF ty_s_data,
ty_t_data type STANDARD TABLE OF ty_s_data with EMPTY KEY.

DATA mt_data type ty_t_data.

data CLIENT type ref to Z2UI5_IF_CLIENT .
INTERFACES if_serializable_object .
INTERFACES z2ui5_if_app .

TYPES: BEGIN OF ty_s_data,
name TYPE string,
END OF ty_s_data,
ty_t_data TYPE STANDARD TABLE OF ty_s_data WITH EMPTY KEY.

DATA mt_data TYPE ty_t_data.
DATA client TYPE REF TO z2ui5_if_client .

PROTECTED SECTION.
PRIVATE SECTION.
Expand All @@ -25,7 +22,7 @@ ENDCLASS.



CLASS Z2UI5_CL_DEMO_APP_173 IMPLEMENTATION.
CLASS z2ui5_cl_demo_app_173 IMPLEMENTATION.



Expand Down
6 changes: 1 addition & 5 deletions src/z2ui5_cl_demo_app_174.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -168,22 +168,18 @@ CLASS z2ui5_cl_demo_app_174 IMPLEMENTATION.

ms_layout = z2ui5_cl_popup_layout_v2=>init_layout(
tab = tab
class = CONV #( class ) ).
classname = CONV #( class ) ).

ENDMETHOD.


METHOD on_after_layout.

" Kommen wir aus einer anderen APP
IF client->get( )-check_on_navigated = abap_true.

TRY.
" War es das Layout?
DATA(app) = CAST z2ui5_cl_popup_layout_v2( client->get_app( client->get( )-s_draft-id_prev_app ) ).

ms_layout = app->ms_layout.

view_display( ).

CATCH cx_root.
Expand Down

0 comments on commit 7642db1

Please sign in to comment.