cancel
Showing results for 
Search instead for 
Did you mean: 

Hide the delete button

Marie-Aure_LIZA
Champ in-the-making
Champ in-the-making

I'm trying to hide the "Delete" button on the view_documents only if the selected custom document have a boolean property to 1.

I'm using the Studio only ... I tried to implement a contribution to the extension point "filter" but it does not seem to work.

Here is the condition I'm using in the contribution:

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters">
  <filter id="canDeleteScan">
    <rule grant="false">
      <condition>#{currentDocument.getProperty("SchemaDocument.scanner").equals("false")}</condition>
    </rule>
</extension>

Does anyone have an idea ?

Thanks

7 REPLIES 7

Lassad_belhedi
Champ in-the-making
Champ in-the-making

Hi,

Marie-Aure_LIZA
Champ in-the-making
Champ in-the-making

Thanks for your help.

Lassad_belhedi
Champ in-the-making
Champ in-the-making

Hello, So if I understand, you want to recover the documents tick in BackEnd and then you have a certain treatment on these documents.

Marie-Aure_LIZA
Champ in-the-making
Champ in-the-making

Hi,

Yes, if a property of at least one of the selected documents in the list is "false", I want to hide the "Delete" button for all of the selected documents because this one can't be deleted.

Thanks

Hi,

It is possible to do it with the Studio ?

Hi,

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.