cancel
Showing results for 
Search instead for 
Did you mean: 

Object page FIORI element save Operation message

prasad
Participant
2,162

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

prasad
Participant

maheshkumar.palavalli . Could you help me in the above issue ?

maheshpalavalli
Active Contributor
0 Kudos

Hi PRASAD VSRK

I am also not sure, I will check it out once, can you tell me the if the app is generated using draft based cds or normal cds(without draft).

BR,

Mahesh

prasad
Participant
0 Kudos

maheshkumar.palavalli its a draft based CDS

Regards

Prasad

maheshpalavalli
Active Contributor

Hi PRASAD VSRK,

I just blogged about this with more information which you might find it useful 🙂

https://blogs.sap.com/2019/04/20/fiori-elementsabap-programming-model-for-fiori-learning-about-custo...

BR,

Mahesh

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor

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

prasad
Participant
0 Kudos

Awesome maheshkumar.palavalli . It Worked!

prasad
Participant
0 Kudos

Hi maheshkumar.palavalli

The above change in i18n file was successful for object saving . could you also help me in getting the message for deleting a record in a List report . we have an action to delete a record on List Report after deletion a message toast saying Object Deleted coming up.

what would be the key for it to over write in i18n file of ListReport.

Regards

Prasad

maheshpalavalli
Active Contributor
0 Kudos

Hi PRASAD VSRK,

YOu can check the below blog where the i18n text link is mentioned

https://blogs.sap.com/2019/04/20/fiori-elementsabap-programming-model-for-fiori-learning-about-custo...

You can find the texts that you can configure there.

BR,

Mahesh

Answers (3)

Answers (3)

Dhanasupriya
Active Participant
0 Kudos

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

prasad
Participant
0 Kudos

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

Dhanasupriya
Active Participant
0 Kudos

Hi Prasad

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

prasad
Participant
0 Kudos

Hi Supriya,

Thanks for the reply.

where would be this AAA.controller.js file would be available in our webide project . we have controller files for list report and object page for modications of FIORI elements .

Regards

Prasad

karthikarjun
Active Contributor
0 Kudos

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>");
prasad
Participant
0 Kudos

Hi karthik,

Thanks for the reply. can you please let me know what would be exact location of placing this Message ?

Regards

Prasad