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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.