cancel
Showing results for 
Search instead for 
Did you mean: 

WDA - Making group invisible initially and the visble

Former Member
0 Kudos

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.........

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182190
Active Participant
0 Kudos

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.

former_member182190
Active Participant
0 Kudos

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.

Former Member
0 Kudos

Dear Ismail,

Please tell me the funtion and the related interface to be used?

Yashpal
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Dear Yashpal,

Is the type of the attribute to change the visibility of the group visibility?Else plz describe in detail.