on ‎2018 Oct 12 8:31 AM
I need to disable the Delete button when selected model attributes have been set, without having to write my own java bean.
Dynamic forms do not support this.
Request clarification before answering.
You can configure your own custom delete action (that overrides the out-of-the-box Delete action to perform additional checks).
This of course means that some custom code is necessary...
custom-backoffice-config.xml
<context type="MyCustomType" component="editorareaactions" >
<y:actions>
<y:group qualifier="common">
<y:label>actiongroup.common</y:label>
<y:action action-id="my.custom.action.delete" property="currentObject"/>
<!-- other actions as necessary -->
</y:group>
</y:actions>
</context>
Documentation of the out-of-the-box Delete Action:
How to create an action:
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 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.