on 10-24-2014 9:42 AM
Hello...
I am creating a new UserPriceGroup, programmatically in the service layer (extension of DefaultCustomerAccountService).
final UserPriceGroup newPriceGroup = UserPriceGroup.valueOf(codeNumber);
customer.getDefaultB2BUnit().setUserPriceGroup(newPriceGroup);
I want to set the localized name for the new UserPriceGroup. It is an enum type, so it is not clear to me how to set that localized english name, programmatically, so it shows as such in the HMC Localized name Properties.
Any suggestions? Thank You
a bit late in answering but may be that link can help: https://wiki.hybris.com/display/release5/Working+with+Enumerations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
you should be able to do that with`EnumerationService.setEnumerationName(HybrisEnumValue, String, Locale)`.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.