on 05-07-2018 5:27 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
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.