Advanced Search Engine Generic Initializer Widget
The Advanced Search Engine Generic Initializer widget is a generic solution that can be used to invoke the Advanced Search, for example as a reaction to some selection in the explorer tree.
Widget Definition
|
Name |
Advanced Search Engine Generic Initializer |
|
ID |
com.hybris.cockpitng.widgets.common.advancedsearchengine.genericinitializer |
|
Category |
Search |
|
Description |
An Advanced Search Engine widget's generic initializer. |
|
Applied In |
Not applicable |
|
Based On |
Not applicable |
|
Author |
SAP |
|
Inputs |
|
|
Outputs |
|
Configuration
Not applicable.
Widget Preview
Not applicable.
Settings
|
Setting |
Type |
Description |
|---|---|---|
|
requiredTypeCode |
java.lang.String |
A type code for which the search context should be created. |
|
navigationNodeId |
java.lang.String |
Navigation node's id to compare with. The query transformation is applied only in two cases:
|
|
handlerBeanId |
java.lang.String |
Id of a bean that implements the com.hybris.backoffice.widgets.advancedsearch.AdvancedSearchInitializer and is used to initialize the query. |
Widget Slots
|
slotID |
Multiplicity | Type |
Slots Composition |
|---|---|---|---|
|
cockpitWidgetChildrenInvisible |
multi |
Not applicable. |
This is a general purpose slot available for widgets. Any widget placed on this slot will not be displayed in the application view but can be accessed through its socket API. |
Initialization of Dynamic Reference Filter Query in Advanced Search
If you wish each selection in the dynamically configured Explorer Tree triggered the search with predefined Filter Query conditions, you need to set a relevant handler bean.
referenceFilterAdvancedSearchInitializer Spring Bean
|
Key |
Value |
|---|---|
|
Catalog |
catalogPk |
|
CatalogVersion |
catalogVersionPk |
|
Category |
categoryPk |
Example of Usage
- if a CatalogVersion node is chosen, the search conditions apply for Catalog and catalogVersion
- if a Category node is chosen, the search conditions apply for Catalog, CatalogVersion, and all categories down the chosen one