on 03-20-2019 3:37 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi PRASAD VSRK,
YOu can check the below blog where the i18n text link is mentioned
You can find the texts that you can configure there.
BR,
Mahesh
As you are checking in Object page, Please go through Object page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasad
Please check in AAA.controller.js and search for MessageToast.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.