I have a variable in my report and would like to use it in a sub-report.
How do I do this?
I have a variable in my report and would like to use it in a sub-report.
How do I do this?
You can create a variable within a formula as follows (using Basic Syntax):
shared variavel as string
variavel = "teste"
formula = variavel
Do not forget that this formula should be at a higher hierarchical level than the sub-report.
Then, within your subreport, create another formula for consuming it (also with Basic Syntax):
shared variavel as string
variavel = variavel + " de variavel compartilhada"
formula = variavel
To make the first formula not appear, just mark it as Suppress .
The result within your subreport should be "shared variable test."