Page 1 of 1

How to get text output value?

Posted: Fri Jun 15, 2012 10:28 am
by Jennypi
Hi,

In a text component I "calculate" a value with multiple conditions:

Code: Select all

{(IIF(Sowing.Ve == 0, "",
	IIF(Sowing.Ve == 5, "Ves",
		IIF(Sowing.Ve == 10, "Ve", ""))).ToString()
+ etc...
}
I would like then to compare the resulting (calculated) value with another one.
What is the property to get this value?
I tried StiText.Text but it's not working.
I can't find something that fits in the documentation.

Thanks!

How to get text output value?

Posted: Sat Jun 16, 2012 7:57 pm
by Ivan
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:

Code: Select all

{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.