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

Backoffice customization

0 Kudos
1,277

I have added custom node to backoffice where I want to add enum field to advance search.

But getting this error when I click on custom node.

"Could not render Null using com.hybris.cockpitng.editor.defaultenum editor"

<as:field-list>

<as:field name="protocol" selected="true" operator="equals" editor="com.hybris.cockpitng.editor.defaultenum"/>

</as:field-list>

Where protocol is having enum values

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member624549
Participant
0 Kudos

- does the field exist in the DB? have you run "update running system"
- try to remove the editor= part

0 Kudos

Hi Olivier.

Thanks for your reply. But I have resolved this exception yesterday only.

It was working fine in the editor area. But was not working as advance search attribute.

Here is what was missing:

While declaring enum in items.xml file, the dynamic attribute was not declared, I added "dynamic=true"

<enumtype code="MswServiceProtocolVersion" generate="true" autocreate="true" dynamic="true">

<value code="CATEGORY_DATA" />

<value code="PRODUCT_MAIN_DATA" />

</enumtype>

But that was just the guess. I still didn't get the relevancy of setting this attribute to the advance search in backoffice.

Can you explain this ?