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

Radio Button - In Module Pool

Former Member
0 Likes
583

Hi all,

I have a screen where I have 6 Radio buttons. Initially the first radio button is selected by default. Now I am selecting the 3 radio button and going to another screen. When I get back to the initial Screen ( where the 6 radio buttons are defined ) the first radio button is selected instead of the 3rd one.

Could some one give me a solution for it.

Thanks in advance.

Bhatt.

4 REPLIES 4
Read only

Former Member
0 Likes
506

Hi Bhatt.

I think you need to code in the PBO for screen having radio buttons as per the selection of radio button. Initialy we specified the 1st radio button as default. when you come back to the screen again the same selection will be performed.

so use some global flags when ever the other radio buttons are selected based on thet hadel the PBO section to select the particular radio button.

Regards,

Satya.

Read only

0 Likes
506

Hi Satya,

Thank you for the reply.

Could you please tell me which attribute to set to make that particular radio button to be selected in the PBO. I have declared the variables globally with the same name as given in the layout but still I am facing the problem.

Thanks

Bhatt.

Read only

0 Likes
506

Hi Gajanan,

the value for radio button checked is 'X' and ' ' for unchecked.

If you lose the selected radiobutton when you return to the dynpro there are three possibilities:

1.- You initialize the value to the global field in the PBO of the dynpro.

2.- The field of your radiobutton is a local field and not a global field.

3.- You use LEAVE TO TRANSACTION nnn TO return to the initial screen and all the global fields return to they initial values.

Regards,

Oscar Subirana

Message was edited by:

Oscar Subirana

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
506

Hi,

After clicking the 3rd button,you have coded something in PAI to call another screen.

Before calling the screen,assign R3 to a variable(say v1) of type character(length 2).Declare it globally inside the main program.

In PBO of the screen,which is having the 6 radio buttons,just check if v1 = 'R3'.

If that is the case,assign X to the 3rd button.Similarly you can do for other buttons.

Kindly reward points by clikcing the star on the left fo reply,if it helps.