on 10-18-2018 1:08 PM
Hi,
We have a enum DemoEnum for which we want to filter out the values from enum based on condition for which we are using EnumMultiReferenceEditor as follows:
<editorArea:attribute qualifier="demoStatus" label="customersupport_backoffice_tab_customer_enrollments_label_demoStatus" type="EnumMultiReference-LIST(DemoEnum)" editor="com.hybris.cockpitng.editor.enummultireferenceeditor"/>
However, when I run it , it gives error popup as Improper value type: java.lang.Enum(DemoEnum)']
.
I even followed configurations given at:
https://help.hybris.com/1808/hcd/8bab6c4486691014a3899cab8989d996.html
But I cannot get what I am doing wrong. Please help.
To filter on the values of an enum we can add a editor-parameter "availableValuesProvider" and add a spring bean as it's value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Type of demoStatus is DemoEnum
How should this ever work? You can not store a collection into a single valued attribute
Change your typesystem ( items.xml
) accordingly, preferably add a <relation>
with the appropriate cardinality (most likely many-to-many) between DemoEnum
and OtherTypeThatShouldHaveListOfDemoEnums
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try without the 'type' and 'editor' attributes, they are resolved automatically from the type system. Also please add the DemoEnum definition from your *-items.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
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.