Ask Your Question

How can I create a field with a blank space in the Expression Evaluator?

asked 2018-01-29 13:52:36 -0500

metadaddy gravatar image

When I create it like this " ", it creates the field including the quotes "\" \"", and when I put only a blank space it creates an empty string.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-01-29 13:54:20 -0500

metadaddy gravatar image

It looks like we're trimming whitespace from the beginning/end of the expression, so you end up with nothing if you use a blank space. When you use quotes, we assume you actually want the quotes in the field.

${str:unescapeJava(' ')} will result in a space, but ${str:unescapeJava('\\u0020')} might be better, as it's a little more explicit.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-01-29 13:52:36 -0500

Seen: 19 times

Last updated: Jan 29