Skip to Content
1
May 30, 2018 at 11:38 AM

Problem with dynamic forms in wizard

446 Views

I try to use dynamic forms within a wizard. I followed the instructions as described in help. But without any effect.

Unfortunately there is no log output. Which possibility would you recommend to debug/ log / find the cause?

Any help is appreciated. Thanks, Heiko

My configuration:

the wizard:

 <context type="NewProductsView" component="selected-items-wizard">
     <wz:flow id="NewProductsWizard" title="create.newproducts.title">

         <wz:prepare id="newProductsWizardPrepare">
             <wz:initialize property="newProductsWizardContainer" type="NewProductsWizardContainer"/>
             ..
         </wz:prepare>
         ..
         <wz:step id="step2">
             <wz:content id="step2sortiment.content">
                 <wz:property-list root="newProductsWizardContainer">
                     <wz:property qualifier="masterProduct" type="Product"/>
                     <wz:property qualifier="masterProductNumber"/>
                 </wz:property-list>
             </wz:content>
             ..
         </wz:step>
         ..
     </wz:flow>
 </context>

         

the dynamic form: (use case: fill in either "masterProduct" or "masterProductNumber")

 <context type="NewProductsView"  component="configurableFlowDynamicForms" merge-by="module">
     <df:dynamicForms xmlns:df="http://www.hybris.com/cockpitng/component/dynamicForms" modelProperty="newProductsWizardContainer">
         <df:attribute disabledIf="masterProductName!=null" qualifier="masterProduct" triggeredOn="masterProductName" id="masterProductConstraint" />
         <df:attribute disabledIf="masterProduct!=null" qualifier="masterProductName" triggeredOn="masterProduct" id="masterProductNameConstraint" />
     </df:dynamicForms>
 </context>