cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow nuxeo studio : field in a node -> force uppercase (without accent) ?

milonette_
Star Collaborator
Star Collaborator

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

7 REPLIES 7

milonette_
Star Collaborator
Star Collaborator

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

ThibArg_
Star Contributor
Star Contributor

Hello,

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

Thibaud

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

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.

And please think to mark the best answer of your question.

All right! I forgot rule N°2

Wondering what's rule number 1

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.