Page 1 of 1

Enabled disabled component on conditions

Posted: Wed Mar 14, 2012 1:20 pm
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

Enabled disabled component on conditions

Posted: Thu Mar 15, 2012 2:16 am
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.

Enabled disabled component on conditions

Posted: Thu Mar 15, 2012 8:28 am
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.

Enabled disabled component on conditions

Posted: Fri Mar 16, 2012 9:28 am
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.

Enabled disabled component on conditions

Posted: Mon Mar 19, 2012 4:48 am
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.

Enabled disabled component on conditions

Posted: Wed Mar 21, 2012 6:02 am
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.

Enabled disabled component on conditions

Posted: Wed Mar 21, 2012 8:34 am
by Alex K.
Hello,

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

Thank you.