Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

UIValidationStatus.ENABLE for Baseline

$
0
0

Hi all,

 

I am trying to enable the unlock and edit actions of a "baseline" through a expression robot on the workflow.


What  happens is that when I perform the lock (of the baseline) with a user, just this user or the adminstrator can do the Unlock.

I know tha is a UI Validation because when I use the jcaDebugg tool I can see and use the unlock and edit actions menu.

 

The problem is that I am newbie with Java I would like a help with the code to be used on the expression robot.

 

I found the code bellow, but this do not validate on the expression robot.

 

 

 

public class SelectorValidator extends DefaultUIComponentValidator
{
@Override
public UIValidationResultSet performFullPreValidation (UIValidationKey validationKey,
      UIValidationCriteria validationCriteria, Locale locale)
   throws WTException {
 
    UIValidationResultSet resultSet = new UIValidationResultSet();
      
       UIValidationStatus status=UIValidationStatus.ENABLED;
      
       UIValidationResult result=new UIValidationResultSet(validationkey,status);

      
       resultSet.addResult(result);
       return resultSet;
 
}
}

 

 

Please some one could help me with this?


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>