cancel
Showing results for 
Search instead for 
Did you mean: 

Typing a value doesn't show any value from dropdown in Advanced Search BackOffice

chun18
Explorer
0 Kudos
482

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:
Screenshot 2024-10-04 at 2.55.16 PM.png

When I typed SAMPLE_NUMBER_1, it doesn't show the SAMPLE_NUMBER_1 object to select.

Screenshot 2024-10-04 at 2.55.37 PM.png

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>
View Entire Topic
adiputera
Active Participant

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>

 

chun18
Explorer
0 Kudos

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!