String Parameter in iReport

0

I have a Contract record where you have a text editor and the user can edit the contract text, however in this text you will have information such as Company and Plan Holder that are dynamic and how the text is passed complete for the report

I need to know if it is possible to receive a string and contain other variables that iReport already has.

Ex: The XYZ Contract with the Company $ P {SocialSource}, $ P {cnpj}, resident $ P {EnterpriseName}, signs contract with the client $ P {clientName} ...

As this text changes and the user who does the editing, I can not only use the variable, what I can and leave available the options that he can use if he wants to display within his text, but I could not make it work yet.

    
asked by anonymous 03.01.2017 / 19:40

1 answer

0

Resolved Using:

Example 6.3. Using built-in functions

msg("Total cost is {0}", $F{TOTAL})
msg("Matched {0} products out of {1}", $F{MATCHED}, $P{TOTAL})
    
03.01.2017 / 20:27