Skip to content

Update #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/z2ui5_cl_demo_app_126.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ CLASS Z2UI5_CL_DEMO_APP_126 IMPLEMENTATION.

SELECT * FROM z2ui5_t_01
INTO CORRESPONDING FIELDS OF TABLE @<table>
UP TO 100 ROWS.
UP TO 3 ROWS.

CATCH cx_root.
ENDTRY.
Expand Down Expand Up @@ -143,9 +143,9 @@ CLASS Z2UI5_CL_DEMO_APP_126 IMPLEMENTATION.

ENDIF.

DATA(layout) = page->vertical_layout( class = `sapUiContentPadding`
width = `100%` ).
layout->label( 'ProgressIndicator'
* DATA(layout) = page->vertical_layout( class = `sapUiContentPadding`
* width = `100%` ).
page->label( 'ProgressIndicator'
)->progress_indicator( percentvalue = mv_perc
displayvalue = '0,44GB of 32GB used'
showvalue = abap_true
Expand Down
29 changes: 16 additions & 13 deletions src/z2ui5_cl_demo_app_132.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ CLASS z2ui5_cl_demo_app_132 DEFINITION
DATA mv_view_display TYPE abap_bool.
DATA mo_parent_view TYPE REF TO z2ui5_cl_xml_view.
DATA mv_perc TYPE string.
DATA mv_init TYPE abap_bool.

METHODS set_app_data
IMPORTING !count TYPE string
!table TYPE string.
IMPORTING
!count TYPE string
!table TYPE string.

PROTECTED SECTION.
DATA client TYPE REF TO z2ui5_if_client.

DATA client TYPE REF TO z2ui5_if_client.

METHODS on_init.
METHODS on_event.
Expand All @@ -24,21 +25,22 @@ CLASS z2ui5_cl_demo_app_132 DEFINITION

PRIVATE SECTION.
METHODS get_comp
RETURNING VALUE(result) TYPE abap_component_tab.
RETURNING
VALUE(result) TYPE abap_component_tab.
ENDCLASS.


CLASS z2ui5_cl_demo_app_132 IMPLEMENTATION.

METHOD get_comp.
DATA index TYPE int4.
TRY.


TRY.

TRY.

cl_abap_typedescr=>describe_by_name( EXPORTING p_name = 'Z2UI5_T_UTIL_01'
RECEIVING p_descr_ref = DATA(typedesc)
cl_abap_typedescr=>describe_by_name( EXPORTING p_name = 'Z2UI5_T_01'
RECEIVING p_descr_ref = DATA(typedesc)
EXCEPTIONS type_not_found = 1
OTHERS = 2 ).

Expand Down Expand Up @@ -96,9 +98,9 @@ CLASS z2ui5_cl_demo_app_132 IMPLEMENTATION.

ENDIF.

DATA(layout) = page->vertical_layout( class = `sapUiContentPadding`
width = `100%` ).
layout->label( 'ProgressIndicator'
* DATA(layout) = page->vertical_layout( class = `sapUiContentPadding`
* width = `100%` ).
page->label( 'ProgressIndicator'
)->progress_indicator( percentvalue = mv_perc
displayvalue = '0,44GB of 32GB used'
showvalue = abap_true
Expand All @@ -125,7 +127,8 @@ CLASS z2ui5_cl_demo_app_132 IMPLEMENTATION.
METHOD z2ui5_if_app~main.
me->client = client.

IF client->check_on_init( ).
IF mv_init IS INITIAL.
mv_init = abap_true.

on_init( ).

Expand Down
6 changes: 4 additions & 2 deletions src/z2ui5_cl_demo_app_184.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ CLASS z2ui5_cl_demo_app_184 DEFINITION
DATA mv_table TYPE string.
DATA mt_table TYPE REF TO data.
DATA mt_table_tmp TYPE REF TO data.
DATA mv_init type abap_bool.

DATA mt_comp TYPE abap_component_tab.

Expand Down Expand Up @@ -103,7 +104,8 @@ CLASS z2ui5_cl_demo_app_184 IMPLEMENTATION.
METHOD z2ui5_if_app~main.
me->client = client.

IF client->check_on_init( ).
If mv_init = abap_false.
mv_init = abap_true.

on_init( ).

Expand Down Expand Up @@ -140,7 +142,7 @@ CLASS z2ui5_cl_demo_app_184 IMPLEMENTATION.
SELECT *
FROM (mv_table)
INTO CORRESPONDING FIELDS OF TABLE @<table>
UP TO 100 ROWS.
UP TO 2 ROWS.

CATCH cx_root.

Expand Down
4 changes: 2 additions & 2 deletions src/z2ui5_cl_demo_app_185.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ CLASS Z2UI5_CL_DEMO_APP_185 IMPLEMENTATION.

METHOD on_init.

mt_t002 = VALUE #( ( id = '1' class = 'Z2UI5_CL_DEMO_APP_184' count = '10' table = 'Z2UI5_T001')
( id = '2' class = 'Z2UI5_CL_DEMO_APP_184' count = '12' table = 'Z2UI5_T002') ).
mt_t002 = VALUE #( ( id = '1' class = 'Z2UI5_CL_DEMO_APP_184' count = '10' table = 'Z2UI5_T_01')
( ID = '2' CLASS = 'Z2UI5_CL_DEMO_APP_184' COUNT = '12' TABLE = 'Z2UI5_T_01') ).

mv_selectedkey = '1'.

Expand Down