fix message manager (#931)

* fix message manager

* update
This commit is contained in:
oblomov 2024-02-22 01:49:40 +01:00 committed by GitHub
parent 8f4e403b6e
commit 374abdaca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -388,6 +388,7 @@ CLASS z2ui5_cl_core_http_get IMPLEMENTATION.
` id: 'mainView',` && |\n| &&
` preprocessor: { xml : { models: { meta : oview_model } } }` && |\n| &&
` });` && |\n| &&
` sap.ui.getCore().getMessageManager().registerObject( sap.z2ui5.oView, true);` && |\n| &&
` if (sap.z2ui5.oParent) {` && |\n| &&
` sap.z2ui5.oParent.removeAllPages();` && |\n| &&
` sap.z2ui5.oParent.insertPage(sap.z2ui5.oView);` && |\n| &&

View File

@ -71,9 +71,9 @@ CLASS ltcl_test_http_get IMPLEMENTATION.
DATA(lo_get) = NEW z2ui5_cl_core_http_get( ).
DATA(lv_index_html) = to_upper( lo_get->main( ) ) ##NEEDED.
IF lv_index_html CS `SAP.UI.GETCORE`.
cl_abap_unit_assert=>fail( 'sap.ui.get.core not allowed' ).
ENDIF.
* IF lv_index_html CS `SAP.UI.GETCORE`.
* cl_abap_unit_assert=>fail( 'sap.ui.get.core not allowed' ).
* ENDIF.
ENDMETHOD.