Application Development 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: 

how can I create a check box with different groups ...

Former Member
0 Kudos

Dear All,

I hope u understund my question.

I wanted to create a multiple check box groups.

Eg :: data : Home as Checkbox, Apprt as checkbox.

second group

data : bike as Checkbox, car as Checkbox.

Regards

madhu

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Check box groups like this:

parameters: p_home as checkbox,
            p_apt  as checkbox.

selection-screen: skip 1.
parameters: p_bcy as checkbox,
            p_car  as checkbox.

If you are going to select only one from Home and Aparmtnet

then radiobutton is the best choice.

parameters: p_home radiobutton group rd1,
            p_apt  radiobutton group rd1.

selection-screen: skip 1.
parameters: p_bcy radiobutton group rd2,
            p_car radiobutton group rd2.

Regards,

Naimesh Patel

5 REPLIES 5

Former Member
0 Kudos

Hi Madhu,

You can not group checkbox, use radio buttons and group them.

Satish

0 Kudos

Hi Satish / Patel,

Thanks for your replies.

I know that through radio buttons we can group but can select only one in group.

My requirement is that user can select more than one from each group. I wonder is there any option to group these check boxes. As if I group them coding will be easy for further processing.

I know that this requirement can be achived with java, where we have same name for checkboxes in one group but will have different titles.

Thank you.

Regards

madhu

0 Kudos

Something like this:

REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.

SELECTION-SCREEN BEGIN OF BLOCK place WITH FRAME TITLE place.
PARAMETERS: p_home AS CHECKBOX,
            p_aprt AS CHECKBOX.
SELECTION-SCREEN END   OF BLOCK place.

SELECTION-SCREEN BEGIN OF BLOCK trans WITH FRAME TITLE trans.
PARAMETERS: p_bike AS CHECKBOX,
            p_car  AS CHECKBOX.
SELECTION-SCREEN END   OF BLOCK trans.

Rob

naimesh_patel
Active Contributor
0 Kudos

Check box groups like this:

parameters: p_home as checkbox,
            p_apt  as checkbox.

selection-screen: skip 1.
parameters: p_bcy as checkbox,
            p_car  as checkbox.

If you are going to select only one from Home and Aparmtnet

then radiobutton is the best choice.

parameters: p_home radiobutton group rd1,
            p_apt  radiobutton group rd1.

selection-screen: skip 1.
parameters: p_bcy radiobutton group rd2,
            p_car radiobutton group rd2.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi

I am not sure bbut you can try this also if you want checkboxes ,

Now when you select p_home, write at selection screen on p_home event

where you disable p_apt

Do same when p_apt is selected .

Similarly do this for p_bcy and p_car ..

parameters: p_home as checkbox,

p_apt as checkbox.

parameters: p_bcy as checkbox,

p_car as checkbox.

Hope i am clear and it helps .

Praveen