on ‎2018 Apr 02 3:54 PM
Hi I need to pre fill create wizards attribute, depending on logged in user, for e.g I logged in as an employee & I'm creating a customer, Now the customer model has an attribute called 'xyz' of type "CustomType".
This custom type has a relation with a user group, which holds certain employees.
->Now I logged in as an employee, when Im creating a customer , I need to pre populate the wizard 'xyz' attribute depending on the relation defined above.
Thanks,
Request clarification before answering.
Hi,
please check the prepare section:
<wz:prepare id="productPrepare">
<wz:initialize property="newProduct" type="ctx.TYPE_CODE"/>
<wz:assign property="newProduct.code" value="ctx.code"/>
<!-- more here -->
</wz:prepare>
Cheers, Wojtek
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 | |
| 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.