on 01-15-2008 5:43 AM
Dear All,
My current situation is that I have a group which contains several labals and several input fields.
I would like to make all the above mentioned invisible initially and then on the click of a link to action the whole set should become visible.
Can this be done without creating attributes for each of the ui elements including the labels and inputfields....
Please help....
Thanks in advance.........
Hi Nisha,
You have got a Group element inside which you have your Labels and Input fields right.
Now create an attribute in your context with name "IS_VISIBLE" of type wdy_boolean.
Now come to the layout tab and bind this attribute to the VISIBLE property of the Group Element.
In your WDDOINIT.
if the context node name is "VISIBILITY" and attribute name is "IS_VISIBLE"
Lo_visb = wd_context->get_child_node( 'VISIBILITY' ).
CALL METHOD lo_visib->set_attribute
EXPORTING
value = abap_false
name = 'IS_VISIBLE'.
in your on action method set it to abap_true.
Hope this helps.
Regards,
Ismail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The group UI element will have a property VISIBLE.
create an attribute( type wdy_boolean) in the context node and bind to this Property of the UI element.
Initially set it to abap_false and on action set it to abap_true.
Regards,
Ismail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
u can do it by making the group visibility property to none ,then all the elements inside it will also be invisible .you just need a single attribute to be assigned to the visibility property of group.
Regards
Yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.