cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Backoffice: Multiple create wizards for one type

975

Hello everyone

I have a problem with my backoffice. I need two creation wizards for address. In one, user addresses are created.In the other one, business addresses. Is there any way to achieve this without creating subtypes or merging the two wizards?


Regards

Jakob

Accepted Solutions (1)

Accepted Solutions (1)

StefanKruk
Active Participant

The Solution would need at least two different Fields. Then you can define different Wizards and the usage in the back mybackofficeextension-backoffice-config.xml

<attribute qualifier="addresses">
  <editor-parameter>
    <name>configurableFlowConfigCtx</name>
    <value>create-wizard-addresses</value>
  </editor-parameter>
</attribute>
<attribute qualifier="addresses">
  <editor-parameter>businessaddresses<name>configurableFlowConfigCtx</name>
    <value>create-wizard-businessaddresses</value>
  </editor-parameter>
</attribute>

As the name of a component is really just a name you can then create two different Creation Wizards for the type with the component "create-wizard-addresses" and "create-wizard-businessaddresses"

In Hybris default there are two variants used "create-wizard" and "create-wizard-no-save"

There are other Examples like in platformbackoffice-backoffice-config.xml

<context type="Product" component="create-wizard-workflow-wizard" merge-by="component" parent="create-wizard">

To avoid redundant configurations, you can try to use one as the parent.(this is at least working with the standard create-wizard. see platformbackoffice-backoffice-config.xml:

<context type="VariantProduct" component="create-wizard-no-save" merge-by="component" parent="create-wizard">
0 Likes

Thank you!

Answers (0)