on 04-01-2011 1:18 PM
Hi all,
is there a better way to clear a context attribute value than
lo_xxx->set_attribute(
EXPORTING
Name = `NAME`
value = '' ).
Thanks !
Hi
Try this...
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->set_attribute_null(
EXPORTING
name = `ATTRIBUTE NAME`
).
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Benjamin.,
If ur attribute is in a node., use invalidate() method.. this method will clear all the attributes in the node.,
lo_nd_test->invalidate( ).
Thanks & Regards
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can use xxx->SET_ATTRIBUTE_NULL mathod.
Thanks,
Shaira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.