Skip to Content
0
Former Member
Sep 12, 2017 at 02:31 PM

Backoffice create wizard filter items

302 Views

 <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>