‎2006 Jun 13 8:14 PM
Hi all,
On a selection screen, I have two radio buttons among several other fields. The default radio button is set to the radiobuttonA selected. When I run the program, after getting the output, when I come back to the selection screen, the radiobuttonB is seen selected. I want to change the code in such a way that radiobuttonA is selected even after coming back from the output.
Please suggest your opinions.
Thanks,
Nuren
‎2006 Jun 13 8:32 PM
Hi,
seems you are puting somewhere the RadiobuttonB = 'X' and clearing the RadiobuttonA, check your code once. if you select a Radiobutton then do not touch the next radiobutton ... you will definetly get the error if you look at the code about putting the Value 'X' to RadiobutonB ..
if you still have the probelm then paste the code here
Thanks
Sudheer
‎2006 Jun 13 8:16 PM
In continuation of my question, the two radio buttons belong to the same group.
Thanks.
‎2006 Jun 13 8:23 PM
hi Nuren,
When did you set your radiobutton ??? i mean did you set that in your selection screen declaration or start-of-selection ?????
‎2006 Jun 13 8:23 PM
unless and until u change the radiobutton option it will display the default option only.could u plz paste ur code here so that we can solve ur issue..
Cheers,
Abdul Hakim
‎2006 Jun 13 8:32 PM
Hi,
seems you are puting somewhere the RadiobuttonB = 'X' and clearing the RadiobuttonA, check your code once. if you select a Radiobutton then do not touch the next radiobutton ... you will definetly get the error if you look at the code about putting the Value 'X' to RadiobutonB ..
if you still have the probelm then paste the code here
Thanks
Sudheer
‎2006 Jun 13 8:32 PM
Are you sure that you are not manipulating the radiobuttons in the code?
Let me try to rephrase your issue.
You have two radiobuttons A and B.
A is set to be the default.
You keep the default selection of A as it is and run the program.
You get some output and then you go back to the selection screen.
Now you see that the radiobutton B is selected. This is not possible unless you are moving 'X' to radiobutton B inside your code based on some logic.
Please let me know if my understanding is correct.
Srinivas
‎2006 Jun 14 2:52 AM
Hi Nuren,
<b>1</b>.
Define ur radio buttons like this
PARAMETERS :x1 RADIOBUTTON GROUP rad1 DEFAULT 'X',
x2 RADIOBUTTON GROUP rad1 .
<b>2</b>.
You might be changing default value in AT Selection-screen output event.Thats y It is giving that problem.
<b>Thanks,
Venkat.O</b>