cancel
Showing results for 
Search instead for 
Did you mean: 

Hide title on Top of list

Former Member
0 Kudos

Hello,

I would like to hide(make invisible) the tile on the Top of list. But when I click Print Version button it should come on the PDF. Can any one help me out.

I see the same query by Anna Smith and it is marked solved by himself/herself. But there is no solution in there.

Thanks.

Nagendra

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

create a conyext attribute of type WDUI_VISIBILITY and bind the VISIBLE property of ur UI with this attribute . set its default value to '01' to make it invisible initially .

create a action for ur Print Button and in the corresponding method set it value to '02' to make it visible using set_attribute method


DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
    DATA ls_cn_node TYPE wd_this->element_cn_node .
    DATA lv_attr  LIKE ls_city-ca_attr.
*   navigate from <CONTEXT> to <CN_NODE> via lead selection
    lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
 
*   get element via lead selection
    lo_el_cn_node = lo_nd_cn_node->get_element(  ).
 
*   set single attribute
    lo_el_cn_node->set_attribute(
      EXPORTING
        name =  `CA_ATTR`
        value = '02').
// set context attribute under the context node CN_NODE to '02'

regards,

amit