• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1090
  • Last Modified:

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?

0
np_bhatia
Asked:
np_bhatia
  • 2
  • 2
1 Solution
 
Helena Markováprogrammer-analystCommented:
I think that this would help:

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

Set_Item_Property('RBG',INSERT_ALLOWED,PROPERTY_TRUE);
Set_Item_Property('RBG',UPDATE_ALLOWED,PROPERTY_TRUE);
0
 
jtriftsCommented:
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
0
 
MindphaserCommented:
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 **
0
 
Helena Markováprogrammer-analystCommented:
I think that both answers are good.
0
 
MindphaserCommented:
Force accepted

** Mindphaser - Community Support Moderator **

0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now