on 2018 Oct 09 1:40 PM
Currently we have all the promotion rules displayed in the default extended multi reference editor. We have a requirement to display only the promotion rules that has status attribute as "Published" in the editor. We have tried the following options based on various answers across this forum, but no luck so far.
Narrowing search results using referencesearchcondition for filtering based on status- This is for filtering the items that are yet to be added to the editor. Whereas we would want to filter the items that are already added and displayed in the editor.
We tried creating a custom editor extending the DefaultExtendedMultiReferenceEditor and tried overriding render() as well as createReferenceLayout() with just super.render as its content, just to see if the new methods are being called - In this, the basic CSS gets lost and while clicking on the items, we get null pointer exception as follows
java.lang.NullPointerException: null INFO | jvm 1 | main | 2018/10/09 15:35:52.550 | at com.hybris.cockpitng.engine.impl.DefaultCockpitWidgetEngine.sendOutput(DefaultCockpitWidgetEngine.java:926) ~[cockpitframework-6.5.0.5-RC3.jar:?] INFO | jvm 1 | main | 2018/10/09 15:35:52.550 | at com.hybris.cockpitng.engine.impl.DefaultComponentWidgetAdapter.sendOutput(DefaultComponentWidgetAdapter.java:81) ~[cockpitframework-6.5.0.5-RC3.jar:?] INFO | jvm 1 | main | 2018/10/09 15:35:52.550 | at com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware.sendOutput(AbstractComponentWidgetAdapterAware.java:56) ~[cockpitframework-6.5.0.5-RC3.jar:?] INFO | jvm 1 | main | 2018/10/09 15:35:52.550 | at com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor.triggerReferenceSelected(AbstractReferenceEditor.java:727) ~[backoffice-widgets-6.5.0.5-RC3.jar:?] INFO | jvm 1 | main | 2018/10/09 15:35:52.550 | at com.hybris.cockpitng.editor.extendedmultireferenceeditor.renderer.DefaultRowRenderer.openRowsInEditorArea(DefaultRowRenderer.java:438) ~[backoffice-widgets-6.5.0.5-RC3.jar:?] INFO | jvm 1 | main | 2018/10/09 15:35:52.550 | at com.hybris.cockpitng.editor.extendedmultireferenceeditor.renderer.DefaultRowRenderer.lambda$render$2(DefaultRowRenderer.java:159) ~[backoffice-widgets-6.5.0.5-RC3.jar:?] INFO | jvm 1 | main | 2018/10/09 15:35:52.550 | at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:3163) ~[zk-8.0.4.2.jar:3.6.4]
I am using hybris 6.5. Please let me know if there are any other options for filtering the items in the editor based on the value of any attributes.?
Request clarification before answering.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.