cancel
Showing results for 
Search instead for 
Did you mean: 

Clear Node With Date Input Field

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Try this.,

lo_el_node->set_attribute(

name = 'DATE' " attribute name

value = '00000000'

).

hope this helps u.,

Thanks & Regards,

Kiran

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Particularly, i prefer to use METHOD set_static_attributes_null of the element of your conetxt node.

Regards,