on 06-17-2011 4:35 PM
Hi Experts,
I have 2 views., In First view I Enter Date and Press button I will go to Second View. And In Second View When I press Back button I have to Clear the Node Elements.,
I used lo_nd_search->invalidate( ) method. It is clearing All Attributes but in Date field two dots ( . ) are there.! Please help how to clear the two dots in date field.
Thanks,
Regards,
Karthik.
Hi,
Try this.,
lo_el_node->set_attribute(
name = 'DATE' " attribute name
value = '00000000'
).
hope this helps u.,
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 sap,
while you caoming back.. in back button you write code like 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` // your attribute name.
).
OR
you cal clear attribute value by passing SAPCE.
** get single attribute
lo_el_context->set_attribute_null(
EXPORTING
name = ` ` // your 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.
Hi,
Particularly, i prefer to use METHOD set_static_attributes_null of the element of your conetxt node.
Regards,
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 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.