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

Displaying list data in backoffice editor view based on attribute condition

former_member708340
Discoverer
0 Kudos
1,636

query-data.png

In hybris backoffice editor area, Can i display data in same attribute multiple times based on any condition on attribute.

For example: In product editor area we have Product Variants displayed using extendedmultireferenceeditor, in attached screenshot, under Product Variants, we have 3 entries. Can we group and display these entries based on any condition, say entries with Article Number ending with "33" should be displayed under Heading1 and remaining entry should be displayed under Heading 2. Is it possible to achieve?

Thanks in Advance!

Regards,

Pavani

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Narrowing search results using referencesearchcondition for filtering based and below sample code and please check https://help.sap.com/viewer/5c9ea0c629214e42b727bf08800d8dfa/1905/en-US/8bab997f86691014852cfbeabd21... and check for narrowing results

cockpit-config.xml

<editorArea:attributequalifier="thumbnails"><editorArea:editor-parameter><editorArea:name>referenceSearchCondition_code</editorArea:name><editorArea:value>00000001</editorArea:value></editorArea:editor-parameter></editorArea:attribute>

With this setting, we narrow down the possible thumbnails only for the items that have their code equal to '00000001'. A dedicated operator (e.g.: endsWith) can be added by replacing the referenceSearchCondition_code with the referenceSearchCondition_code_endsWith.

if still filter is not fulfil your requirement try to creating a custom editor extending the DefaultExtendedMultiReferenceEditor and tried overriding render() as well as createReferenceLayout() with just super.render.