cancel
Showing results for 
Search instead for 
Did you mean: 

Custom create wizard for OOTB model

Former Member
0 Kudos

Hi to all. Please, suggest how to solve the next issue: There is a custom defined model: customModel1 which has the collection of objects of a model: ootbModel1. There is defined create a wizard in backoffice for customModel1. When I create object of customModel1 and want to create object ootbModel1 during creating the object of customModel1 then defined for ootbModel1 create wizard is shown. So, everything is obvious but I would want to have custom create-wizard for ootbModel1 which is called only when objects of ootbModel1 is created for customModel1. Does anyone know whether it is possible? Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you have to define 2 wizards: 1 for customModel1, 1 for ootbModel1 looking like this:

 <context type="OotbModel1" component="create-wizard-foobar">
        ... your wizard definition goes here ...
  </context>
 
 <context type="CustomModel1" component="create-wizard" merge-by="type">
         <wz:flow id="CustomModel1" title="create.title(ctx.TYPE_CODE)">
             <wz:prepare id="newItemPrepare">
                 <wz:initialize property="newItem" type="ctx.TYPE_CODE"/>
             </wz:prepare>
             <wz:step id="step1" label="wizard.step.default">
                 <wz:content id="step1.content">
                     <wz:property-list root="newItem">
                         <wz:property qualifier="ootbModel1">
                             <wz:editor-parameter>
                                 <wz:name>isNestedObjectCreationDisabled</wz:name>
                                 <wz:value>false</wz:value>
                             </wz:editor-parameter>
                             <wz:editor-parameter>
                                 <wz:name>configurableFlowConfigCtx</wz:name>
                                 <wz:value>create-wizard-foobar</wz:value>
                             </wz:editor-parameter>
                         </wz:property>
                     </wz:property-list>
                 </wz:content>
             </wz:step>
         </wz:flow>
     </context>

That should work.

Regards, Norbert

Former Member
0 Kudos

Works, thanks

Answers (0)