hello every body ,
if i have two text field in the report , how to assign the value of the first one to the second text , without using the same expression in the first text .
i.e
text1 = {sum(databand.column1)}
how to write the below code ?
text2 = text1
thanks
assigning text field value to another text
-
- Posts: 1
- Joined: Sun Sep 17, 2017 1:55 pm
Re: assigning text field value to another text
Hello,
During report rendering exist two instance of each component (minimum two instance). One instance - component in report template. Second instance - component which created for rendered report. During creation of second instance report engine calculate expressions and write it to second instance. When you write expression like this:
{Text1.Text}
you call instances from report template which does not contain calculated values from expressions.
You can:
1. Instead of "{Text1.TextValue}" expression use the same expression as in Text1.Text property, or
2. Use variables. In this case you can calculate value in variable, and then use this variable in expressions.
Thank you.
During report rendering exist two instance of each component (minimum two instance). One instance - component in report template. Second instance - component which created for rendered report. During creation of second instance report engine calculate expressions and write it to second instance. When you write expression like this:
{Text1.Text}
you call instances from report template which does not contain calculated values from expressions.
You can:
1. Instead of "{Text1.TextValue}" expression use the same expression as in Text1.Text property, or
2. Use variables. In this case you can calculate value in variable, and then use this variable in expressions.
Thank you.