cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove enum values at run time from hybris code

Former Member
0 Kudos

I have a requirement to flush out the previous values in the enum and then add new values and show the new values. I need to do this everything at run time. Is there any way to remove the values from enum using hybris code.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If you define your enum type as dynamic you will be able to add/remove values from hMC and ImpEx.

It should be possible with ModelService as well, but I haven't tried it. The type that represents the valu is EnumerationValue.

Cheers, Mirek

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks. i could do this using enumeration service

Former Member
0 Kudos

Hi Harleen, can you please help how you deleted enum values ?