Hook data receive event in SAP UI5 Adaptation Project

I am trying to create an adaptation project based on the SAP UI standard application ‘Monitoring of purchase requisition items’.

I want to hook a data receive event when the Go button on the screen is pressed.
I could hook an event when the Go button is pressed.
However, I could not hook the data receive event on the screen after the Go button is pressed.

I have created following extension controller.
However, “onDataReceived” does not work.
How can I hook data receive events?

/***
@controller Name:sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage,
*@viewId:ui.s2p.mm.pritem.monitors1::sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage::C_PurReqnItemMntrResults
*/
sap.ui.define([
        "sap/ui/core/mvc/ControllerExtension"
        , "sap/ui/core/mvc/OverrideExecution"
        , "sap/ui/model/odata/v2/ODataModel"
        , "sap/ui/model/json/JSONModel" ],
    function (ControllerExtension, OverrideExecution, ODataModel, JSONModel) {
        "use strict";
        return ControllerExtension.extend("customer.monit01.testItem", {
            metadata: {
                // extension can declare the public methods
                // in general methods that starts with "_" are private
                methods: {
                    publicMethod: {
                        public: true /*default*/ ,
                        final: false /*default*/ ,
                        overrideExecution: OverrideExecution.Instead /*default*/
                    },
                    finalPublicMethod: {
                        final: true
                    },
                    onMyHook: {
                        public: true /*default*/ ,
                        final: false /*default*/ ,
                        overrideExecution: OverrideExecution.After
                    },
                    couldBePrivate: {
                        public: false
                    }
                }
            },

            // adding a private method, only accessible from this controller extension
            _privateMethod: function() {},
            // adding a public method, might be called or overridden from other controller extensions as well
            publicMethod: function() {},
            // adding final public method, might be called but not overridden from other controller extensions as well
            finalPublicMethod: function() {},
            // adding a hook method, might be called or overridden from other controller extensions.
            // override these method does not replace the implementation, but executes after the original method.
            onMyHook: function() {},
            // method per default public, but made private per metadata
            couldBePrivate: function() {},
            // this section allows to extend lifecycle hooks or override public methods of the base controller
            override: {
                /**
                 * Called when a controller is instantiated and its View controls (if available) are already created.
                 * Can be used to modify the View before it is displayed, to bind event handlers and do other one-time initialization.
                 * @memberOf customer.monit01.testItem
                 */
                onInit: function() {
                    // this._loadAdditionalData();
                    // call original onInit
                    //ControllerExtension.prototype.onInit.apply(this, arguments);

                    // add event handler
                    var oView = this.getView();
                    var oGoButton = oView.byId("ui.s2p.mm.pritem.monitors1::sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage::C_PurReqnItemMntrResults--template::SmartFilterBar-btnGo");
                    if (oGoButton) {
                        oGoButton.attachPress(this.onGoButtonPress, this);
                    }
                },
                
                /**
                * Hook data receive event. 
                * This doesn't work.
                * /
                onDataReceived: function(oData){ // oSomeData will be passed in
                    if (oData && oData.status === "important") {
                        oData.message = oData.message + "!!!";
                    }
                } 
            },
            onGoButtonPress: function (oEvent) {
                console.log("GO button pressed");
            },
        });
    });

Thank you very much in advance.
Ryo

New contributor

Ryo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật