cancel
Showing results for 
Search instead for 
Did you mean: 

How To Read Tray(which is designed in view) in my action method

former_member223446
Active Participant
0 Kudos

Hi ,

I want to hide the TRAYs which are designed in view of my wda component.I have created one attribute(BOOLEAN) at context level and bind to the tray as shown in figure and write below code.

in tray i have attached node w_dynamic(which is custom table).

lo_nd_w_dynamic = wd_context->get_child_node( name = wd_this->wdctx_w_dynamic ).

*

* get element via lead selection

   lo_el_w_dynamic = lo_nd_w_dynamic->get_element( ).

*

   lo_el_w_dynamic->set_attribute(

     name `BOOLEAN`

     value = abap_true ).



How read the tray...so based on the condition,i want to show trays either visible or none.how to achieve it.I know BOOLEAN IS NOT PART OF W_DYNAMIC.SO GOT ERROR.Please help me here.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kiran,

Use type wdui_visibility .

regards,

Ramesh Reddy

former_member223446
Active Participant
0 Kudos

I used it..but it is not working

lo_el_context->set_attribute(

    EXPORTING

       name `BOOLEAN`

       value = cl_wd_tray=>e_visible-visible ).

Former Member
0 Kudos

first create a attribute of type WDUI_VISIBILITY  and bind it to the tray's visible property  .

And set the attribute value to True or False using set_attribute. u can take the help of code wizard. It should work.

former_member223446
Active Participant
0 Kudos

Its working .i have binded 'visible' property to boolean variable.which is type of wdui_visibility.

Thank you ramesh.

Answers (0)