How to populate a Drop-Down
list created in a custom wizard in the Hybris
cockpit with the model data items
?
The wizard is designed with ZK framework components (in a .zul extension file).
To get a drop-down
list in Hybris Cockpit Wizards, you need to call the Hybris native editor bean named shortListEditor
in the MyItem
xml configuration file. To go more further in the solution you need to :
Locat the wizard xml configuration file, often named wizardConfig_MyItem.xml
.
Add attribute (the myAttribute
should be a List or Enum) to MyItem
structure.
Add xml configuration for your attribute :
If myAttribute
a List
add : <property qualifier='MyItem.myAttribute' editorCode='shortListEditor'>
If myAttribute
an Enum
add : <property qualifier='MyItem.myAttribute' editorCode='shortListEditor'>