cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

i created a View with severel Input Fields. Normal Text Filds and Dropdown by Index Fields and some Date Fields.

Now i wanted to give the User the ability to clear his input.

I try to use Invalidate() but this kills my Dropdown Fields.

Is there a Function that resets my fields, without destroying my Dropdown Fields?

Regards

Tobias Kübler

0 Likes
View Entire Topic
amy_king
Active Contributor
0 Likes

Hi Tobias,

I have a method of my componentcontroller which clears all nodes of the context, in effect resetting all views to their initial states.

  method refresh .
    wd_context->invalidate( ).
  endmethod.

Since I populate my dropdown lists in the componentcontroller WDDOINIT method, I can call wd_comp_controller->refresh( ) from any view and not lose the dropdown list value sets.

An alternate approach could be to put your code which populates your dropdown lists into a separate method. Then you could call

  lo_nd_mynode->invalidate( ).
  wd_this->initialize_node_dropdown( ).

Cheers.

Amy

Former Member
0 Likes

Hi,

What Amy suggests is the best option.

The only other option would be to invalidate all nodes except the drop down context node.

Former Member
0 Likes

thnks It was helps me too