‎2008 Jul 09 6:26 AM
Hi Experts,
I have requirement in where in a module pool screen I am creating two Radio-buttons say R1 and R2 under one group.
When I do this the first radio button R1 is by default gettimg checked. What is that I need to do for making secand radiobutton R2 by default getting cheked.....?
Please note that it is in Module-pool not a Report.
Kindly help me out in this aspect.
Regards,
Rama Murthy.P
‎2008 Jul 09 6:52 AM
Hi Ramamurthy,
You can do it that one in PBO event in the flow logic. Declare 2 variables of length 1 in the module program with the same name of radio buttons say R1 and R2.
In PBO , clear R1 and R2 = 'X' . Then R2 will be checked by default. But make sure you put some flag conditions .
Regards,
Naveen Veshala
‎2008 Jul 09 6:52 AM
Hi Ramamurthy,
You can do it that one in PBO event in the flow logic. Declare 2 variables of length 1 in the module program with the same name of radio buttons say R1 and R2.
In PBO , clear R1 and R2 = 'X' . Then R2 will be checked by default. But make sure you put some flag conditions .
Regards,
Naveen Veshala
‎2008 Jul 09 6:55 AM
Hi,
In the process before output of the initial screen give
R2 = 'X'
Regards,
Sai
‎2008 Jul 09 7:04 AM
Hi,
You can set check/uncheck value of radio buttons in PBO.
But that check box button should be declared in main program(se38) also.
for e.g
data: R1 type c,
R2 type c.
declare above in your main program.
now go to se51. In layout go to Dictionary/Program fields or press F6.
Now click on Get from program button and drag R1,R2 to your layout.
Now right click on it and under convert option you will get radio button.
In main program under PBO make that radio button check.
Loop at screen.
if screen-name = 'R2'.
R2 = 'X'.
endloop.
Modify Screen.
Regards,
SUDHIR MANJAREKAR
‎2008 Jul 09 7:15 AM
Hi,
You can change the defalut value by assigning the value to 2nd Radiobutton in the PBO of screen.
Declare two variables of same name (As the name given for Radiobutton in Layout) having length 1 of type c.
And in the PBO of screen assign value 'X' to 2nd radiobutton.
E.g.:
DATA: r1 TYPe c,
r2 TYPe c.module STATUS_1000 output.
r2 = 'X'.
endmodule.
Ashven
‎2008 Jul 09 7:26 AM
Hi,
Within the PBO event of that screen put
R2 = 'X'.
Regards,
Rajitha.
‎2008 Aug 22 7:26 AM