How to escape template result

Create a template "test.tpl" with this content :

Code:
test := '&<name="Object">';

Execute this template in an SQL window and, in the "Object", enter the text : "Hello[X]"

This will consider [X] as a new input control and remove it.
How to tell the system, to consider result as is, without asking for new input ? (escape ?)

Thanks for your help
 
You can specify && to escape substitution variables in your template. The && expression will be inserted as &.
 
I've tried to modify my template as you said :

Code:
test := '&&<name="Object">';

But now it doesn't substitute anything.
Could you give me a syntax example ? I didn't found anything in the doc.
 
Last edited:
Sorry, I misread your question. The only option here is to escape the brackets by supplying double brackets:

Hello[[X]]

We'll look into this though. I don't think the variable values that you enter should be reinterpreted as variables.
 
Thanks, but in fact it is very difficult to explain to all developers to do such operation (duplicate brackets in the response).
As we are using suffix "[O]" for many of our applicative objects which have to be input in these template.
Hope we will get a fix.
 
Back
Top