on 2018 May 30 12:38 PM
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>
Request clarification before answering.
Hi,
I would recommend to start debugging from: com.hybris.cockpitng.widgets.common.dynamicforms.impl.visitors.AbstractComponentsVisitor#getPathToAttributeInModel You can also can try to enable logs from spEL: log4j2.logger.spel.name = com.hybris.cockpitng.core.expression.impl.DefaultExpressionResolver log4j2.logger.spel.level = debug
Regards,
Lukasz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. So I could find the cause (but I do not know the reason):
In EditorsVisitor.visitComponents the variable matchingEditors is empty. componentKeyComponentsMap: {newProductsWizardContainer.masterProduct=[]}
I added the type to masterProductName (which is redundant). No success. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.