cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

In Edit Functional Location page, Apply button is renamed as Save Is there any way to change?

nalinee_priya
Newcomer
0 Likes
402

In Edit Functional location page, the 'Apply' button is renamed as 'Save' in SAM 2305, Is there any way to change?

Accepted Solutions (0)

Answers (1)

Answers (1)

jason_latko
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

You can modify the FunctionalLocationCreateUpdate.page metadata to adjust the text:

 
{
"Position": "right",
"SystemItem": "$(PLT,'Done','')",
"Text": "/SAPAssetManager/Rules/Common/Platform/DoneText.js",
"OnPress": "/SAPAssetManager/Actions/FunctionalLocation/CreateUpdate/FunctionalLocationCreateUpdateRequired.action"
}
 
The text for that button is returned in the DoneText.js rule.  Either modify that rule, or create a new rule and change the target of the "Text" property above to point to the new rule.  The translatable strings are found in the i18n.properties files.
 
The existing code for DoneText.js looks like this:
 
export default function DoneText(context) {
if (isAndroid(context)) {
return context.localizeText('save');
} else {
return context.localizeText('done');
}
}
 
Replace the string name from i18n.properties that you want to use.  If you don't want different strings for iOS vs. Android, you can simply: return context.localizeText('MyNewString');
 
MyNewString above should be a valid string name from the i18n.properties file.