cancel
Showing results for 
Search instead for 
Did you mean: 

Change Text for Button in Fiori Elements

former_member231903
Participant
0 Kudos

Hi experts,

I'm developing an App using smart template, and I want to change the default Button text from 'Save' to 'Post'.

Since this button is default from Fiori element, and I can't set text in xml view file, but only in UI adaptation.

So is it possible that I set the text and give it i18n ?

(I tried to set button Text as '{i18n>BUTTON_SAVE}' and add an entry 'BUTTON_SAVE=Post' in existing i18n file. but doesn't work)

Regards,

Blangero

0 Kudos

I faced the same problem, did you solved it?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

saradsales
Explorer
0 Kudos

Hi, yes, in the manifest file you need to set the respective i18n files to the ListReport and/or ObjectPage where you want to change the text

"sap.ui5": {

...

"models": {

"i18n": {

"type": "sap.ui.model.resource.ResourceModel",

"uri": "i18n/i18n.properties"

},

"i18n|sap.suite.ui.generic.template.ListReport|POHeaders": {

"type": "sap.ui.model.resource.ResourceModel",

"uri": "i18n/ListReport/POHeaders/i18n.properties"

},

"i18n|sap.suite.ui.generic.template.ObjectPage|POHeaders": {

"type": "sap.ui.model.resource.ResourceModel",

"uri": "i18n/ObjectPage/POHeaders/i18n.properties"

},

"i18n|sap.suite.ui.generic.template.ObjectPage|POItems": {

"type": "sap.ui.model.resource.ResourceModel",

"uri": "i18n/ObjectPage/POItems/i18n.properties"

Source: https://sapui5.hana.ondemand.com/sdk/#/topic/b8cb649973534f08a6047692f8c6830d.html