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

0 votes

2 answers

1291 views

ANSWER



Hello,

A blog post on this topic has been posted: http://www.nuxeo.com/blog/development/2013/05/red-uppercase-nuxeo-studio/

Thibaud

0 votes



Ok, thanks making a post for more details, but don't forget to refer the original answered ticket in your blog, please.
06/14/2013

The "original source for this information" (as you commented on the blog) was not your reply. The blog was written a few days after the question was posted, and because it is longer than our usual blogs, it took way more time to proof-read and then to publish.
06/17/2013

And please think to mark the best answer of your question.
06/17/2013

All right! I forgot rule N°2 : no arguing with someone taller than me (dam it ;-)
10/10/2013

Wondering what's rule number 1: "always argue with someone less taller than you"? :-) It was cool to meet you at NxW.
10/17/2013


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"]);
0 votes