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

How to edit listViewReferenceEditor data before rendering?

0 Likes
288

I am trying to view list of data in cockpit from product editor area. This is working fine. But I would like to edit/customize the content list to be displayed. So rather than rendering entire list of data I would like to filter it first based on simple condition and displaying only a sublist.

How can this be done?

Currently xml config I am using something like below in my editorArea...xml file:

This renders entire property "myList" of course. I would like to filter this before rendering.

 < property qualifier="Product.myList" editor="listViewReferenceEditor" >

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member682593
Participant
0 Likes

It's quite easy and it's described in documentation: https://help.hybris.com/1808/hcd/8bad002786691014924ba694583a1368.html

in section Narrowing Search Results

If you need more advanced cases, you need to use the 'avalibleValuesProvider' editor parameter for that (you can check existing usages of it in backoffice - just search for 'avalibleValuesProvider' string.

Thanks, Marcin