on 2024 Oct 04 8:09 PM
In BackOffice advanced search, when I type a value, it doesn't show any result. It's showing blank. How can I fix it?
This is from the dropdown:
When I typed SAMPLE_NUMBER_1, it doesn't show the SAMPLE_NUMBER_1 object to select.
Attribute B is TypeB.
I have this
<context type="TypeA" component="advanced-search" merge-by="type">
<as:advanced-search xmlns:as="http://www.hybris.com/cockpitng/config/advancedsearch" connection-operator="AND">
<as:field-list>
...
<as:field name="attributeB" operator="equals" selected="true"/>
</as:field-list>
</as:advanced-search>
</context>
To be able to search items in advanced search, or editor area, first you need to define its simple search. Let's say your itemtype has 2 fields in it, code and otherField, and you want those 2 fields to be searchable, you need to define it in backoffice config like this:
<context type="MyItemType" component="simple-search">
<simple-search:simple-search>
<simple-search:field name="code" />
<simple-search:field name="otherField" />
</simple-search:simple-search>
</context>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it's working. I have:
<itemtype code="ItemTypeA">
<attributes>
<attribute qualifier="myAttributeB" type="ItemTypeB">
<persistence type="property" />
</attribute>
</attributes>
</itemtype>
<context type="ItemTypeA" component="advanced-search" merge-by="type" >
<as:advanced-search xmlns:as="http://www.hybris.com/cockpitng/config/advancedsearch" connection-operator="AND" disable-auto-search="true">
<as:field-list>
...
<as:field name="myAttributeB" operator="equals" selected="true"/>
</as:field-list>
</as:advanced-search></context>
I want to search "myAttributeB" by "name" in advanced search of ItemType A. After adding simple search by "name" for ItemTypeB, now when I type the name of myAttributeB in advanced-search, I can see it displaying.
<context type="ItemTypeB" component="simple-search" merge-by="type">
<simple-search:simple-search>
<simple-search:field name="name" />
</simple-search:simple-search>
</context>
Thank you so much for your help!
User | Count |
---|---|
109 | |
8 | |
6 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.