How do I refer to a Text box in an Event?

Stimulsoft Reports.NET discussion
MerChen
Posts: 15
Joined: Mon Jun 28, 2010 12:23 pm

How do I refer to a Text box in an Event?

Post by MerChen »

After speaking with a colleague, we came up with a workaround in the end which was to set up 2 variables and have these roll up in the Rendering Event of the DataBand. Then the expression for Text13 became:

Code: Select all

{IIF(SumBaseWTgtRate == SumTgtRateWBase, null,  Div(SumBaseWTgtRate, SumTgtRateWBase)*100 - 100)}
Ivan, I'm interested in your previous post regarding the improvements. How would these improvements have helped for this issue? Is there a list of improvements of what the latest version includes compared to my current version? I have seen the topic "Stimulsoft Reports.Net version 2010.2 list of changes" but wondered if there was any more detail on that.

Also, rounding back to my original question, I take it there's no way to reference the value from a text box from code? Is that because of the version I'm on?

Thanks,
Chen.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How do I refer to a Text box in an Event?

Post by Jan »

Hell Chen,
Ivan, I'm interested in your previous post regarding the improvements. How would these improvements have helped for this issue? Is there a list of improvements of what the latest version includes compared to my current version? I have seen the topic "Stimulsoft Reports.Net version 2010.2 list of changes" but wondered if there was any more detail on that.
We have fixed some troubles with parsing long expressions in report engine.
Also, rounding back to my original question, I take it there's no way to reference the value from a text box from code? Is that because of the version I'm on?
You can't reference to component by name. This problem depend to report structure. Each component in report its a report component template during rendering. For example for report engine during rendering exist - Text1 (template), Text1 (render copy 1), Text1 (render copy 2) and etc. So report engine during rendering work with copy of report components. If you need change something in text component you can use GetValueEvent. For example:

Code: Select all

if (condition)e.Value = "123";
Also you can use report variables.

Thank you.
MerChen
Posts: 15
Joined: Mon Jun 28, 2010 12:23 pm

How do I refer to a Text box in an Event?

Post by MerChen »

Thanks Jan. One more question if I may, do you know when the issue with parsing long expressions was fixed? Is it only in the prerelease build or was it in one of the other releases?

Thanks,
Chen.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

How do I refer to a Text box in an Event?

Post by Ivan »

Hello,

The problem was solved only in the last prerelease builds.

Thank you.
MerChen
Posts: 15
Joined: Mon Jun 28, 2010 12:23 pm

How do I refer to a Text box in an Event?

Post by MerChen »

Thanks Ivan. Do you know when the next release will be? An approx date is fine if nothing is confirmed yet.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

How do I refer to a Text box in an Event?

Post by Andrew »

Hello,

The next prerelease build with the fix will be available on Monday, July 12, 2010.

The official release 2010.2 will be in September 2010.

Thank you.
Post Reply