Link to home
Start Free TrialLog in
Avatar of np_bhatia
np_bhatia

asked on

Regarding Radion Buttions in Developer-2000.

In Developer-2000,  I want to disable/enable a radio button dynamically.
I am trying to do this in table type form(Form having multiple records and each record has a radio group comprising 2 radio buttons.
I am able to disable a radio button dynamically using command  -

set_radio_button_property('RBG', 'RB1', enabled, property_false)

where RBG is radiobutton group, RB1 is Radio Button i want to disable.

    But when i try to enable the same button, that i have disabled earlier,
 button is not enabled. I use following command to enable it -

set_radio_button_property('RBG', 'RB1', enabled, property_true)

Is there any way to do this?

ASKER CERTIFIED SOLUTION
Avatar of Helena Marková
Helena Marková
Flag of Slovakia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi np_bhatia,

What Henka is demonstrating is that when you disable an item, you get other *free* behaviour along with it.

Thus when you execute:

set_radio_button_property('RBG', 'RB1', enabled, property_false)

you also are setting

Set_Item_Property('RBG',INSERT_ALLOWED,PROPERTY_FALSE);
Set_Item_Property('RBG',UPDATE_ALLOWED,PROPERTY_FALSE);
Set_Item_Property('RBG',NAVIGABLE,PROPERTY_FALSE);

So when you decide to set it back to enabled, you must remember to reset INSERT and UPDATE (if you desire) and also NAVIGABLE.

Regards,
JT
Avatar of Mindphaser
Mindphaser

Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** Mindphaser - Community Support Moderator **
I think that both answers are good.
Force accepted

** Mindphaser - Community Support Moderator **