2020 Jul 07 1:19 PM - edited 2024 Feb 03 7:14 PM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.