Cannot enable the text item after disable it in Forms 6i
67664Dec 19 2002 — edited Dec 26 2002Hi All,
I want to enable/disable the text items depending on the value of the radio group. Since the text items and the radio group are on different tab page, so I place the following code on the WHEN-TAB-PAGE-CHANGED trigger, to do this:
if :recordgroup ='P' then
set_item_property(item1, ENABLED,PROPERTY_TRUE);
set_item_property(item1, NAVIGABLE,PROPERTY_TRUE);
elsif :recordgroup ='K' then
set_item_property(item1, ENABLED,PROPERTY_FALSE);
set_item_property(item1, NAVIGABLE,PROPERTY_FALSE);
end if;
When recordgroup is 'K', item1 is disabled, then when recordgroup has changed to 'P', item1 is still disabled.
Both recordgroup and items are database items.
How come like this?
Thanks is advance,
Vanessa