Skip to Content

Object page FIORI element save Operation message

Hi All,

Would you please let me know how would we actually change the object page fiori element save operation message toast test as shown below. it says object saved need to be other message.

Regards

Prasad

capture.jpg (23.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Apr 17, 2019 at 08:10 PM

    Hi PRASAD VSRK,

    Sorry for the wait. You can do this in 2 ways.

    1, let the object message come. Now from the backend, in the copy draft to active entity, populate the information or success message as shown below:

        IF eo_message IS NOT BOUND.
          eo_message = /bobf/cl_frw_message_factory=>create_container( ).
        ENDIF.
        eo_message->add_message(
          EXPORTING
            is_msg       = VALUE #( msgid = '00' msgno = '001' msgty = 'I' msgv1 = 'Its a success' )
        ).
    

    2. Else, if you want to remove that object message, then you need to override the standard object message saved by doing the below:

    In the manifest.json, add an i18n config for the object page(main entityset) if not available as below.

    			"i18n|sap.suite.ui.generic.template.ObjectPage|Zc_Test_DraftTp": {
    
    				"type": "sap.ui.model.resource.ResourceModel",
    				"uri": "i18n/ObjectPage/Zc_Test_DraftTp/i18n.properties"
    			},
    
    

    Now create the i18n file in the folder structure if not available similar to below

    Now time to save and test. Let me know if it works. :) :)

    BR,

    Mahesh


    capture.jpg (57.5 kB)
    capture.jpg (44.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 20, 2019 at 04:22 AM

    Hi Prasad, This is a default message from std class. To change the std message please use below code in your project to perform the activities.

    sap.m.MessageToast.show("<Enter Your Message>");
    
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 16, 2019 at 06:13 AM
    -1

    Hi Prasad

    Please check in AAA.controller.js and search for MessageToast.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 16, 2019 at 06:47 AM
    -1

    As you are checking in Object page, Please go through Object page.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Supriya,

      This is a FIORI elements Project and all the extensions are carried in controller files created explicitly.

      As your answer says Object Page . there is no file called AAA.controller.js file

      Please provide exact location .

      Regards

      Prasad

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.