cancel
Showing results for 
Search instead for 
Did you mean: 

Multiselect action evaluator

mdergalev
Champ in-the-making
Champ in-the-making
Hi.
Is there a way to add evaluator to multiselect action?
<multi-select>
         <action type="action-link" id="onActionDownload" label="menu.selected-items.download" />
         <action type="action-link" id="onActionCopyTo" label="menu.selected-items.copy" />
         <action type="action-link" id="onActionMoveTo" permission="Delete" label="menu.selected-items.move"/>
……………………………………………………
     </multi-select>


I added a restriction to document action, but still need to restict multiselect action.
3 REPLIES 3

mdergalev
Champ in-the-making
Champ in-the-making
no one knows?

mluraschi
Champ in-the-making
Champ in-the-making
I need to add an evaluator to those actions on the multi-select menu. I tried turning one of those lines like this:
<blockcode>
<action type="action-link" id="onActionAssignWorkflow" asset="document" label="menu.selected-items.assign-workflow">
     <evaluator>evaluator.doclib.action.is.admin</evaluator>
     <evaluator negate="true">evaluator.doclib.action.is-in-report-or-wave</evaluator>
</action>
</blockcode>
But nothing changed. The only change I got is that I forgot the icon and as a matter of fact, the action is there, just without an icon. (In my test the conditions of the evaluator were not met, so the actions shouldn't be visibile).

ctan
Champ in-the-making
Champ in-the-making
An improvement Jira can be tracked here: https://issues.alfresco.com/jira/browse/MNT-13998