Skip to Content
author's profile photo Former Member
Former Member

Hide OOTB Enum Values in a Combobox

I would like to hide the OOTB values for CancelReason in a combobox. I would instead like to show my own custom values. The combobox is used as part of the 'omsCancelOrderPopup' widget in the customer support perspective, in the backoffice. I'm using Hybris version 6.4.

Thanks, Breandan

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2017 at 07:54 PM

    Hi I could suggest two ways one is deleting the enum values(not preferable) as below

      Delete FROM enumerationvalues item_t0 WHERE (item_t0.code IN ( 'code1','code2'..)) 
    
    

    using HAC -> sql query and clearing cache further. The second way is removing the enum while rendering . You can create a custom editor referring here

    and referring the render() method of com.hybris.cockpitng.editor.defaultenum.DefaultEnumEditor(ootb enum editor) in cockpit-standard-editors.jar in backoffice extension, you can remove from the collection the particular enum . Thanks Seb

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.