on 04-09-2009 1:20 PM
Hi,
When i refresh the view, I want to clear the selected items in the list box and the selected radio button and check box. How do I do it?
Thanks and Regards
Tenzin
set_selected(abap_false) i used for check box and set_lead_selection_index ( index = 1 ) for the radio button.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
->do you want to refresh your view on pressing F5 or on Action of some button.
-> If you want to refresh using button , then you can use Exit Plug in your window.
-> Add outbound plug to the window of type Exit.
-> Add a Parameter to this Plug. URL of type String.
-> Now add the Component Name in the Properties Tab of View ( othervs Calling Outbound plug of win from view wont b psbl).
Write Below mentioned Code :
DATA lo_zexit TYPE REF TO ig_zexit . <Replace Zexit with your comp name>
lo_zexit = wd_this->get_zexit_ctr( ).
lo_zexit->fire_out_window_plg(
url = 'http://www.google.com' < Give your application URL> " string
).
<You can get this code using Code Wizard too( control + F7)>
With this you will again come to original state of View.
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tenzin,
When we use the broswer refresh button (F5) all the selection (list box, check box) comes to the initial state i.e in the state in which the application was initially displayed. Is this not happening for you?
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arjun,
The f5 refresh button is working fine. but when i am going to a different link and then clickin this link again, I need to refresh it. so i am calling a refresh( ) method in my program, and clearing all the fields but i dont know how to remove these selected items, radio button and clear the check boxes as we have after init( ) method.
Thanks and Regards
Tenzin
LR_RRITM = WD_CONTEXT->GET_CHILD_NODE( IG_COMPONENTCONTROLLER=>WDCTX_RRITM ).
LT_RRITM = LR_RRITM->GET_ELEMENTS( ).
LOOP AT LT_RRITM INTO LS_RRITM.
IF LS_RRITM->IS_SELECTED( ) EQ ABAP_TRUE.
LS_RRITM->SET_SELECTED( ABAP_FALSE ).
ENDIF.
LS_RRITM->SET_ATTRIBUTE( NAME = '<CHECK BOX BINDED FIELD>' VALUE = ABAP_FALSE ).
ENDLOOP.
loop through the lements of the node and use SET_SELECTED method to deselect it.
LR_RRITM is my node reference, ls_rritm is context element type and lt_rritm is of type
WDR_CONTEXT_ELEMENT_SET
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is just, clearing the context attribute value which is bound to your checkbox or radio button.
if your context attribute which is bound to check box is directly under root context node, you can use
wd_context->set_attribute( name = '<attribute name bound to your check box uielement>'
value = abap_false ).
Instead puting the stmt in loop , put it outside the loop.
Abhi
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.