renaming fixes (#1080)

This commit is contained in:
oblomov 2024-04-16 16:54:07 +02:00 committed by GitHub
parent 40a6466c2d
commit 45ec0db10f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 3 deletions

View File

@ -14,7 +14,7 @@ CLASS z2ui5_cl_util DEFINITION
CLASS-METHODS app_get_url
IMPORTING
!client TYPE REF TO z2ui5_if_client
VALUE(classname) TYPE string OPTIONAL
VALUE(classname) TYPE clike OPTIONAL
RETURNING
VALUE(result) TYPE string.
@ -58,7 +58,7 @@ ENDCLASS.
CLASS z2ui5_cl_util IMPLEMENTATION.
CLASS Z2UI5_CL_UTIL IMPLEMENTATION.
METHOD app_get_url.

View File

@ -152,9 +152,17 @@ CLASS z2ui5_cl_core_app_startup IMPLEMENTATION.
client = client
classname = 'z2ui5_cl_demo_app_000' ).
data lo_app type ref to z2ui5_cl_core_app_search.
data(rtti) = cl_abap_typedescr=>describe_by_data( lo_app ).
data(ref) = CAST cl_abap_refdescr( rtti ).
data(name) = ref->get_referenced_type( )->absolute_name.
name = substring_after( val = name sub = `\CLASS=` ).
DATA(lv_url_samples3) = z2ui5_cl_util=>app_get_url(
client = client
classname = 'z2ui5_cl_core_app_search' ).
* classname = 'z2ui5_cl_core_app_search'
classname = name
).
simple_form2->toolbar( )->title( `What's next?` ).