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 buttons

Former Member
0 Likes
852

Hi folks,

iam desinging the report, i have designed the selection screen which contains 4 blocks , first 3 blocks contains the input data for 3 diffrent selections, and the 4th block contains the 3 radio buttons , now the user pass the data to the first block and clicked the first radio button the output should be displayed , if he passed data to the second block and pressed the 2nd button then the required out should be displayed and like same for 3 rd.

now my problem is if user filled the data in first block and mistakenly clicked the third raido button, here how can i restrict the user form this, is there any error message has to be displayed? if yes please tell me how?

thanks in advance,

regards

priya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
826

hi priya,

u can give like

at selection-screen.

if not p_val1 is initial and

rad2 = 'X' or rad3 = 'X'.

message e001(zz).

endif.

Hi folks,

iam desinging the report, i have designed the selection screen which contains 4 blocks , first 3 blocks contains the input data for 3 diffrent selections, and the 4th block contains the 3 radio buttons , now the user pass the data to the first block and clicked the first radio button the output should be displayed , if he passed data to the second block and pressed the 2nd button then the required out should be displayed and like same for 3 rd.

now my problem is if user filled the data in first block and mistakenly clicked the third raido button, here how can i restrict the user form this, is there any error message has to be displayed? if yes please tell me how?

thanks in advance,

regards

priya

6 REPLIES 6
Read only

Former Member
0 Likes
827

hi priya,

u can give like

at selection-screen.

if not p_val1 is initial and

rad2 = 'X' or rad3 = 'X'.

message e001(zz).

endif.

Read only

Former Member
0 Likes
826

in at selection screen u can use validation against the block of input and radio button

if block- field is not initial and r3 is clicked

message error

Harish

Read only

LucianoBentiveg
Active Contributor
0 Likes
826

You can use MESSAGE statement.

Why you are not using buttons in sel. screen instead those radio buttons?

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
826

You will need to check this per radiobutton. Something simular to this.




report zrich_0001 .

parameters: p_chk1 type c.

parameters: p_chk2 type c.

parameters: p_chk3 type c.

parameters: p_rad1 radiobutton group gp1 default 'X',
            p_rad2 radiobutton group gp1,
            p_rad3 radiobutton group gp1.

at selection-screen.

  if p_rad1 = 'X'
        and p_chk1 is initial.

    message e001(00) with 'Hey, put something in P_CHK1'.
  endif.

  if p_rad2 = 'X'
       and p_chk2 is initial.

    message e001(00) with 'Hey, put something in P_CHK2'.
  endif.

  if p_rad3 = 'X'
       and p_chk3 is initial.

    message e001(00) with 'Hey, put something in P_CHK3'.
  endif.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
826

when u input data in first block, make 2nd and 3rd radio button's disbale ( in display mode )

regards

Srini kumar

Read only

Former Member
0 Likes
826

hi priya,

try this code.

data : flag 1.

parameters: p_rad1 radiobutton group gp1 default 'X',

p_rad2 radiobutton group gp1,

p_rad3 radiobutton group gp1.

at selection-screen.

if p_rad1 = 'X'

flag = 1.

dour work......

endif.

if p_rad3 = 'X'

if not flag is initial.

do ur work....

else.

message e001(00).

endif.

enif.

as same in p_rad2. if u want , try this

hope it will help u.

chetan vishnoi