Enabled disabled component on conditions

Stimulsoft Reports.NET discussion
Post Reply
Girasole
Posts: 16
Joined: Thu Nov 10, 2011 10:33 am

Enabled disabled component on conditions

Post by Girasole »

Hello everyone!
I have the following problem: I have two textboxes (TextBox1 and TextBox2) filled with two values ​​of a table and I wish that when the TextBox2 was valued, the TextBox1 is not displayed.
I tried doing it through conditions but with no results ....
Can anyone help me? Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Enabled disabled component on conditions

Post by HighAley »

Hello.
Girasole wrote:Hello everyone!
I have the following problem: I have two textboxes (TextBox1 and TextBox2) filled with two values ​​of a table and I wish that when the TextBox2 was valued, the TextBox1 is not displayed.
I tried doing it through conditions but with no results ....
Can anyone help me? Thanks
Please, send us your report template for analysis.

Thank you.
Girasole
Posts: 16
Joined: Thu Nov 10, 2011 10:33 am

Enabled disabled component on conditions

Post by Girasole »

Good morning.
I attached a sample project:
1) I would like that when the textbox that contains tf_vsrif (Text15) is valued, the textbox that contains df_numbol (Text14) is not visible and vice versa
2) I would like to set the text of Text16 "Rif.Sc." in the first case and "Ref DDT" in the second
3) I would Text15 take the place of Text14 when visible

Thank you.
Attachments
1724.Template.zip
(10.67 KiB) Downloaded 538 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Enabled disabled component on conditions

Post by HighAley »

Hello.
Girasole wrote:I attached a sample project:
1) I would like that when the textbox that contains tf_vsrif (Text15) is valued, the textbox that contains df_numbol (Text14) is not visible and vice versa
2) I would like to set the text of Text16 "Rif.Sc." in the first case and "Ref DDT" in the second
3) I would Text15 take the place of Text14 when visible
If we clearly understand you, you need text in one place in case of values of the tf_vsrif and df_numbol.
You should use one text box Text14 and set its value in the Get Value event by setting the e.Value.

Also what would you like to do when both text boxes Text14 and Text15 are valued?

Thank you.
Girasole
Posts: 16
Joined: Thu Nov 10, 2011 10:33 am

Enabled disabled component on conditions

Post by Girasole »

Aleksey wrote:If we clearly understand you, you need text in one place in case of values of the tf_vsrif and df_numbol.
Yes but they must be in different text boxes.
Aleksey wrote:You should use one text box Text14 and set its value in the Get Value event by setting the e.Value.
I need to set it all through the design and not by code.
Aleksey wrote:Also what would you like to do when both text boxes Text14 and Text15 are valued?
When both text boxes are valued I would see only Rif.Sc.: and tf_vsrif

Thank you.
Girasole
Posts: 16
Joined: Thu Nov 10, 2011 10:33 am

Enabled disabled component on conditions

Post by Girasole »

I solved the problem using two different databand: one for tf_vsrif and the other for tf_numbol. To set the enabling of one or the other, I used conditions and the results are that in the attached figure.
Attachments
1736.Immagine.png
1736.Immagine.png (266.45 KiB) Viewed 4630 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Enabled disabled component on conditions

Post by Alex K. »

Hello,

Ok.
Let us know if you need any additional help.

Thank you.
Post Reply