cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable groups in wdcomponent

Former Member
0 Kudos

Hi all,

my requirement is i have created a radiobuttons in this sequence

select action

1)copy 2) mass upload 3) rate processing

again select rate category

1) professional rates 2) default rates 3) claims & litigation rates 4) account 5) rate chart

i have created 5 groups g5, g6, g7, g8, g9 each group contains

upload ui element

and upload button

now my requirement is if user select mass upload and professional rates group5 which contain upload professional rates should be appear and rest of all other groups shouls be disappear and for others also the same if again he select

mass upload and default rates then g6 should be appear. like this can u tell me how it will be possible to achieve this functionality.

Thanks & Regards,

Naveen

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

You can achieve it easily.

by controlling the visiblity of the groups at the runtime.

for this create an attribute of type WDUI_visibilty for each group.

then bind these attributes to the respective visiblity property.

then in the on select event of the radiobutton

make the required group visible or invisible by setting the value in the respective attribute.

suppose you creates context attribute vis1 for grp1

then if you want to make it visible write

wd_context->set_attribute(
 
name = 'VIS1'
value = cl_wd_uielement=>e_visible-VISIBLE ).

and

if you want to make it disappear.

wd_context->set_attribute(
 
name = 'VIS1'
value = cl_wd_uielement=>e_visible-VISIBLE ).

thanks

sarbjeet singh

Former Member
0 Kudos

Hi Sarbjeet,

you mean that suppose if i select mass upload is one radiobutton and professional rates is another radiobutton if both these are selected group8 should be appeared for group8 i will create g8_visibility and bind to group8 and rest of all groups should be disabled so in which radio button action should i must write the code and in your previous code for visible and invisible both the code is same can u send me with some more detail.

Thanks & Regards,

Naveen

gill367
Active Contributor
0 Kudos
wd_context->set_attribute(
 
name = 'VIS1'
value = cl_wd_uielement=>e_visible-NONE ).

for making invisible.

you can put the code in any of the action

just check whether the other radio button is also selected.

suppose we put it in massuplaod.

then there you can check for whether professional rate is selected or not.

get its selected key attributes value using get_attribute method and then

compare it with the value give in the key select.

if it is same then make group 8 visible. and other groups invisible.

thanks

sarbjeet singh

Answers (0)