on 01-20-2010 1:24 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.