Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

radiobutton output selection screen issue

Former Member
0 Likes
807

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
773

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

6 REPLIES 6
Read only

Former Member
0 Likes
773

In continuation of my question, the two radio buttons belong to the same group.

Thanks.

Read only

0 Likes
773

hi Nuren,

When did you set your radiobutton ??? i mean did you set that in your selection screen declaration or start-of-selection ?????

Read only

abdul_hakim
Active Contributor
0 Likes
773

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

Read only

Former Member
0 Likes
774

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

Read only

Former Member
0 Likes
773

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

Read only

venkat_o
Active Contributor
0 Likes
772

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>