cancel
Showing results for 
Search instead for 
Did you mean: 

Hide a node which itself consist a table

Former Member
0 Kudos

Hi

I need to hide a node completely which is binded with a table structure.

node-table

attribute-matnr,mtart

pls tell me how to hide the node - table complete with a code.

reds

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi Vipin ,

instead of setting the context attribute value to '01' and '02' , u can also proceed by this way:


wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_visible )." to make it visible.
 
wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_none ). "to make it invisible

rgds,

amit

Former Member
0 Kudos

hi,

->bind the Table's visible property with WDUI_visiblity.

->Now you can set this attribute :

01- To make it invisible

02 - To make it visible.

Former Member
0 Kudos

Hi,

U can bind the visibility property of the table with a attribute of type WDUI_VISIBILITY.

Then set its value in the code.

Former Member
0 Kudos

if u want to hide ur table which is binded to the context node , u can hide using the attribute wdui_visibility

u can declare a context attribute of type wdui_visibility and bind its(table's) VISIBLE property with this attribute

set the attribute value to 01 to make the table invisible


   DATA lo_nd_cn_visiblesuper TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_visiblesuper TYPE REF TO if_wd_context_element.
    DATA ls_cn_visiblesuper TYPE wd_this->element_cn_visiblesuper.
    DATA lv_ca_visible LIKE ls_cn_visiblesuper-ca_visible.
*   navigate from <CONTEXT> to <CN_VISIBLESUPER> via lead selection
    lo_nd_cn_visiblesuper = wd_context->get_child_node( name = wd_this->wdctx_cn_visiblesuper ).

*   get element via lead selection
    lo_el_cn_visiblesuper = lo_nd_cn_visiblesuper->get_element(  ).

*   get single attribute
    lo_el_cn_visiblesuper->set_attribute(
      EXPORTING
        name =  `CA_VISIBLE`
   
        value = '01').

here I have created a attribute ca_visible under node cn_visiblesuper of type wdui_visibility type ,which I am setting to 01

to make table invisible this is binded to VISIBLE property of ur table UI

u can set attribute to 02 in case u want to make ur table visible again

I hope it shud help

rgds,

amit