Overriding delete button

Hi :) I want to override the delete button.I want to show the button only if the documents are in a specific LifeCycleState.I am lookin at the ActionService extensions but i am not finding the Id of the delete button.Can someone help me please

0 votes

1 answers

1607 views

ANSWER



I found the solution. Using this xml extension and also creating the condition

<filter-id>showOnlyInDraftStateAndWorkflowCanceled</filter-id>

<rule grant="false">
  <condition>#{checkPermissions.hideDeleteButton()}</condition>
</rule>

0 votes



Hi, i have the same problem, can you give me your complete file xml extension.

Thanks

09/17/2018