on 2020 Apr 07 12:38 PM
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
Request clarification before answering.
- does the field exist in the DB? have you run "update running system"
- try to remove the editor= part
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
| User | Count |
|---|---|
| 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.