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.
I Created the Method REFRESH in my View
whith this coding
method REFRESH .
wd_context->invalidate( ).
endmethod.
In my Method ONACTIONCLEAR (my button)
i wrote
method ONACTIONCLEAR .
WD_COMP_CONTROLLER->REFRESH( ).
endmethod.
but i get this error
Web-Dynpro-Comp. / Intf. ZWD_ABSOLVENTEN_BETA,Web-Dynpro-View ANLEGEN
Methode ONACTIONCLEAR
Die Methode "REFRESH" ist unbekannt bzw. PROTECTED oder PRIVATE.
Now it tryed
WD_THIS->REFRESH().
and i didnt get any errors and the button worked but my DD-Lists are geding killed (empty) as before
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And this may help you.
Consider an example.
You have a component controller, a view VIEW1 and a method METH1.
Case 1: If METH1 is in Component Controller.
- You can call this method from within the component controller using WD_THIS->METH1.
- you can also call this method from VIEW1 using WD_COMP_CONTROLLER->METH1.
Case 2: If METH1 is in VIEW1
- You can only call this method from VIEW1 using WD_THIS->METH1.
You cannot call WDDOINIT method. It is only called from run time.
Do one thing.
Remove the code that fills DD from WDDOINIT and create a new method say for example FILL_DD.
Now write the code here.
1. Call this method from WDDOINIT
2. Also call this method from ONACTIONCLEAR. ( Remember, do this only AFTER invalidate( ). )
Hi Tobias,
From what you wrote, you created the refresh method in your VIEW, but then you ask the COMPONENTCONTROLLER to execute it. If refresh is a method of your view, then your VIEW should call it. Otherwise create the method in your componentcontroller and then any view can call the method by asking the componentcontroller to execute it.
wd_comp_controller->refresh( ).
Cheers,
| 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.