hi erwan, in your case You can use substring :
http://freemarker.sourceforge.net/docs/ref_builtins_string.html#ref_builtin_substring${partyName?substring(0, 20)}
Nicolas
Le 01/09/2010 16:55, Erwan de FERRIERES a écrit :
> Le 01/09/2010 15:25, Erwan de FERRIERES a écrit :
>> Hi all,
>>
>> is there a way to call groovy scripts directly in a fo.ftl file ?
>>
>> Cheers,
>>
>
> Ok, this was a bit not enough, for example, I want to transpose this
> in a fo.ftl :
> description="${groovy:partyName.size()>20?partyName[0..20]:partyName}"/>
>
> or if I want to include a groovy file, which is used in a row-action
> in a form ?
>
--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet :
http://www.neogia.org/-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site :
http://www.librenberry.net/