on 07-20-2007 5:22 PM
Hello everyone,
I have a requirement where in the input field should be visible for the user to input when the check box is marked otherwise it should be invisible. Thanks in advance for ur replies.
In your context, have an attribute 'visible' of type char01. Read the checkbox value by reading the context element. If the checkbox is checked, this will be 'X' or else it will be space. If it is 'X', set the attribute 'visible' as true. You should do that as
node->set_attribute(
exporting
name = 'visible'
value = abap_true).
Bind the 'visible' property of the input field to the visible context attribute. So when the context gets set, the visibility of the element will be manipulated accordingly. You could insert this code into the event handler for the checkbox toggle event.
Regards
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can implement it in a simple way.Your check box UI element will be bound a context attribute of type char1 (xfeld) .Now in your textbox bind the visibility property to the same attribute.
Which means that , if the checkbox is ticked , the text box will be visible.Else not..
Thanks
Anzy
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.