Hello,
I have a very complex report that does a lot of calculations and not I want to be able to grab a value from a textbox from outside of the report AS3 side.
Something like:
var total:Number = Number(reportView....txtTotal.text);
This is possible ?
Get Textbox value from AS3
Re: Get Textbox value from AS3
Hello.
Could you describe your task more detailed?
Do you need to get value from report template or from rendered report?
Thank you.
Could you describe your task more detailed?
Do you need to get value from report template or from rendered report?
Thank you.
Re: Get Textbox value from AS3
Hello,
From a rendered report.
For example: Something like as event that is fired and I can then iterate thru the pages and get the rendered texbox values.
From a rendered report.
For example: Something like as event that is fired and I can then iterate thru the pages and get the rendered texbox values.
Re: Get Textbox value from AS3
Hello, Hugo.
As a way you could go through all components of rendered report and find necessary by name. Here is a code sample:
Thank you.
As a way you could go through all components of rendered report and find necessary by name. Here is a code sample:
Code: Select all
for each (var page: StiPage in rep.renderedPages)
{
for each (var comp: StiComponent in page.components)
{
if (comp.name == "Table1_Cell38")
{
var text: String = (comp as StiText).text;
//here you could get text value
}
}
}
Re: Get Textbox value from AS3
Thank you.
Seems that is what I need. I'll try that.
Seems that is what I need. I'll try that.
Re: Get Textbox value from AS3
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.