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

how to conditionally prevent loading collection browser on click of node?

Former Member
0 Likes
238

How can I prevent the collection browser from loading on, for example while selecting orders? On click of orders the list view shouldn't populate.

View Entire Topic
mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

You have to change the advanced-search config for the type:

 <context type="SomeType" component="advanced-search" merge-by="type" parent="GenericItem">
     <advanced-search:advanced-search disable-auto-search="true">
         <advanced-search:field-list>
             <advanced-search:field name="code" selected="true" operator="startsWith"/>
         </advanced-search:field-list>
     </advanced-search:advanced-search>
 </context>

The magic is disable-auto-search="true"

Documentation for the Advanced Search Widget (RTFM 😛 )

https://help.hybris.com/1808/hcd/8b50ccf3866910149e1c9ebdd47f12be.html

Former Member
0 Likes

Thanks a lot !!