cancel
Showing results for 
Search instead for 
Did you mean: 

show/hide action link ??

lover91
Champ in-the-making
Champ in-the-making
in web-client-config-actions.xml , I create test action
this action will change doc aspect status
I think can make it in a script, I don't make it yet.
the 1st problem is : I need this action to visible for specific  user not for all user

<config>
     <actions>
      <action id="ChangeAspect_Status" >
         <label>Reject</label>
         <image>/images/icons/reject.gif</image>
      </action>
      
      <action-group id="document_browse_menu">
         <action idref="ChangeAspect_Status" />
      </action-group>
      <action-group id="doc_details_actions">
         <action idref="ChangeAspect_Status" />
      </action-group>
    </actions>
</config>
1 REPLY 1

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
this is how you do it. hope it helps
   <action id="some>
            <label-id>preview</label-id>
            <evaluator>Someclass
            </evaluator>…..

———-
public class Someclass extends BaseActionEvaluator {
@Override
    public boolean evaluate(Node node) {
         return if(show)?true:false;
      }

}