cancel
Showing results for 
Search instead for 
Did you mean: 

Backoffice create wizard filter items

Former Member
0 Kudos
 <context type="TestProduct" component="create-wizard">
    <wz:flow xmlns:wz="http://www.hybris.com/cockpitng/config/wizard-config" id="TestProductWizard" title="create.title">
       <wz:prepare id="testProductPrepare">
          <wz:initialize property="newTestProduct" type="ctx.TYPE_CODE"/>
          <wz:assign property="newTestProduct.colorVariantCode" value="ctx.product"/>
       </wz:prepare>
       <wz:step id="step1" label="create.essential.label" sublabel="create.essential.sublabel">
          <wz:info id="step1.intro" label="create.essential.intro" position="top"/>
          <wz:content id="step1.content">
             <wz:property-list root="newTestProduct">

                <wz:property qualifier="colorVariantCode" />

QUESTION : //How do I make the above property (colorVariantCode) as searchable field for Product type ? So that User can search a product entry from Product type and assign the value to this property ?

             </wz:property-list>
          </wz:content>
          <wz:navigation id="step1.navigation">
             <wz:cancel/>
             <wz:done visible="!#empty(newTestProduct.colorVariantCode)">
                <wz:save property="newTestProduct"/>
             </wz:done>
          </wz:navigation>
       </wz:step>
    </wz:flow>
 </context>



former_member625836
Active Contributor
0 Kudos

Search where? How is your create-wizard configuration related to this search? What is the type of a field you are referring to?

Former Member
0 Kudos

for this property <wz:property-list root="newTestProduct">, is there any way to prepopulate colorVariantCode as dropdown or searchable with Product.getCode() ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Ved!

If you want to make the property "colorVariantCode" a searchable within Product type please configure it as follows:

 <wz:property qualifier="colorVariantCode" type="Reference(Product)" />

This will render a Reference Editor for your property. For more information on Reference Editor please consult Backoffice Help Pages

Hope that helps! Cheers, Rafal