Workflow nuxeo studio : field in a node -> force uppercase (without accent) ?
Hello,
I use nuxeo workflow in nuxeo studio.
I defined fields on a task. As “name”, “firstname”.
I would like to force answers on this fields to “uppercase”.
Is it possible on nuxeo studio ?
thank you
Hello,
A blog post on this topic has been posted: http://www.nuxeo.com/blog/development/2013/05/red-uppercase-nuxeo-studio/
Thibaud
Hello Me
Solution is based in two operations:
Created a css style class or use balise “style” with transformation of text inserted “just for visibility "
text-transform:uppercase;
Accents are still possible at this time and the texte is not yet register in uppercase.
After click to go to next node, use an automation chain this way: Choose ONE of this TWO =>
WorkflowVariables["varvar"]=WorkflowVariables["varvar"].toUpperCase();
WorkflowVariables["varvar"]=org.apache.commons.lang.StringUtils.upperCase(WorkflowVariables["varvar"]) ;
and then do :
WorkflowVariables["varvar"]=org.nuxeo.common.utils.StringUtils.toAscii(WorkflowVariables["varvar"]);