* Update README.md

* Update README.md

* update controller nest

* message manager

* update

* Update src/z2ui5_cl_http_handler.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
This commit is contained in:
oblomov 2023-08-11 18:39:54 +02:00 committed by GitHub
parent 3bb6af9f01
commit e68bef7b37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 5 deletions

View File

@ -45,6 +45,7 @@ CLASS z2ui5_cl_fw_client IMPLEMENTATION.
check_launchpad_active = mo_handler->ms_actual-check_launchpad_active
t_event_arg = mo_handler->ms_actual-t_event_arg
t_scroll_pos = mo_handler->ms_actual-t_scroll_pos
t_message_manager = mo_handler->ms_actual-t_message_manager
s_draft = CORRESPONDING #( mo_handler->ms_db )
check_on_navigated = mo_handler->ms_actual-check_on_navigated
s_config = z2ui5_cl_fw_handler=>ss_config ).

View File

@ -345,6 +345,16 @@ CLASS Z2UI5_CL_FW_HANDLER IMPLEMENTATION.
CATCH cx_root.
ENDTRY.
TRY.
DATA(lo_message) = so_body->get_attribute( `OMESSAGEMANAGER` ).
z2ui5_cl_fw_utility=>trans_ref_tab_2_tab(
EXPORTING
ir_tab_from = lo_message->mr_actual
IMPORTING
t_result = result->ms_actual-t_message_manager ).
CATCH cx_root.
ENDTRY.
TRY.
DATA(lo_scroll) = so_body->get_attribute( `OSCROLL` ).
z2ui5_cl_fw_utility=>trans_ref_tab_2_tab(

View File

@ -276,6 +276,11 @@ CLASS Z2UI5_CL_HTTP_HANDLER IMPLEMENTATION.
` }` && |\n| &&
` });` && |\n| &&
` }` && |\n| &&
` try { ` && |\n| &&
` sap.z2ui5.oBody.OMESSAGEMANAGER = []; ` && |\n| &&
` sap.ui.getCore().getMessageManager().getMessageModel().oMessageManager.oMessageModel.oData.forEach( row => { ` && |\n| &&
` sap.z2ui5.oBody.OMESSAGEMANAGER.push( { type : row.type , message : row.message , additionaltext : row.additionalText , atargets : row.aTargets[ 0 ] } ); ` && |\n| &&
`} ) } catch (e) { } ` && |\n| &&
` sap.z2ui5.oBody.ID = sap.z2ui5.oResponse.ID;` && |\n| &&
` sap.z2ui5.oBody.ARGUMENTS = args;` && |\n| &&
` try { sap.z2ui5.oBody.OCURSOR = sap.ui.getCore().byId(sap.ui.getCore().getCurrentFocusedControlId()).getFocusInfo(); } catch (e) { }` && |\n| &&

View File

@ -14,13 +14,13 @@ INTERFACE z2ui5_if_client
n TYPE string,
v TYPE string,
END OF ty_s_name_value.
TYPES:
TYPES:
BEGIN OF ty_s_name_value_int,
n TYPE string,
v TYPE i,
END OF ty_s_name_value_int.
TYPES ty_t_name_value TYPE STANDARD TABLE OF ty_s_name_value WITH EMPTY KEY.
TYPES ty_t_name_value_int TYPE STANDARD TABLE OF ty_s_name_value_int WITH EMPTY KEY.
TYPES ty_t_name_value TYPE TABLE OF ty_s_name_value WITH EMPTY KEY.
TYPES ty_t_name_value_int TYPE TABLE OF ty_s_name_value_int WITH EMPTY KEY.
TYPES:
BEGIN OF ty_s_config,
@ -49,11 +49,21 @@ INTERFACE z2ui5_if_client
selectionend TYPE i,
END OF ty_s_cursor.
TYPES:
BEGIN OF ty_s_message_manager,
type TYPE string,
message TYPE string,
additionaltext TYPE string,
aTargets TYPE string,
END OF ty_s_message_manager,
ty_t_message_manager TYPE TABLE OF ty_s_message_manager WITH EMPTY KEY.
TYPES:
BEGIN OF ty_s_get,
event TYPE string,
t_event_arg TYPE string_table,
t_scroll_pos TYPE ty_t_name_value_int,
t_message_manager TYPE ty_t_message_manager,
check_launchpad_active TYPE abap_bool,
check_on_navigated TYPE abap_bool,
s_draft TYPE ty_s_draft,
@ -137,8 +147,8 @@ INTERFACE z2ui5_if_client
METHODS timer_set
IMPORTING
interval_ms TYPE clike
event_finished TYPE clike.
interval_ms TYPE clike
event_finished TYPE clike.
METHODS message_toast_display
IMPORTING