on 03-05-2014 11:05 AM
Hi Guys,
In the selection screen i have 2 radio buttons PO and RP.
user is allowed to select either of the one so i have created 1 radio button group.
scenario 1:
when user clicks on radio button 1 and then click the submit button.
now he wants to change his selection so he again enter and click the radio button 2 and click on subnit button.
if he goes again he can see the radio button 2 selected.so it is working fine.
Scenario 2:
when user clicks on radio button 2 and then click the submit button.
now he wants to change his selection so he again enter and click the radio button 1 and click on subnit button.
if he goes again he can see the radio button 2 selected.so it is not working fine.
The coding is as follows:
on action submit i have writtent the following code
IF ls_iohncust_values-repplanonly IS NOT INITIAL.
IF ls_iohncust_values-repplanonly EQ 'PO'.
ls_profgen_custval-cust_attr = 'REPONLY'.
ls_profgen_custval-cust_value = 'X'.
ELSEIF ls_iohncust_values-repplanonly EQ 'RP'.
ls_profgen_custval-cust_attr = 'REPPLAN'.
ls_profgen_custval-cust_value = 'X'.
ENDIF.
ENDIF.
Kindly let me know why scenario 2 is not working.
Hi Vijay,
IF ls_iohncust_values-repplanonly IS NOT INITIAL.
IF ls_iohncust_values-repplanonly EQ 'PO'.
ls_profgen_custval-cust_attr = 'REPONLY'.
ls_profgen_custval-cust_value = 'X'.
ELSEIF ls_iohncust_values-repplanonly EQ 'RP'.
ls_profgen_custval-cust_attr = 'REPPLAN'.
ls_profgen_custval-cust_value = 'X'.
ENDIF.
ENDIF.
As I can see there is no such issue in selecting data in secord scenario. It might be the case that it's not getting cleared so you can just clear your node ls_iohncust_values-repplanonly after your endif on submit action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.