As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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 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"]);
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.