Re: destructive properties in Forms 4.5
From: Christer Peltomaa <s93cpe_at_csd.uu.se>
Date: 1996/11/13
Message-ID: <Pine.GSO.3.95.961113183735.18841A-100000_at_ida.csd.uu.se>#1/1
Date: 1996/11/13
Message-ID: <Pine.GSO.3.95.961113183735.18841A-100000_at_ida.csd.uu.se>#1/1
PROCEDURE Enable_Item( Item_Name VARCHAR2) IS Item_Id ITEM := Find_Item(Item_Name); BEGIN
Set_Item_Property(Item_Id, ENABLED, Property_True); Set_Item_Property(Item_Id, NAVIGABLE, Property_True); Set_Item_Property(Item_Id, REQUIRED, Property_True);END; Create this procedur and then it's easy.
-- Christer Peltomaa, Mandat Consult AB, Stockholm, Sweden On 13 Nov 1996, Walter Zimmer wrote:Received on Wed Nov 13 1996 - 00:00:00 CET
> Hi !
>
> I have an application where I want to grey out certain items (in fact,
> entire blocks). So, I just set the ENABLED property to PROPERTY_FALSE and
> things work perfectly !
>
> Thats what I thought. Looking at the documentation, I found that setting
> the ENABLED property to PROPERTY_FALSE sets some other properties too.
> Now my question is: How can I set back these properties to the state
> I told them to have in the designer ? Do I have to hardcode these
> properties in my code ?
>
> Is there another way to display my items in a greyed out style ?
>
> I think it's generally a bad idea to have an action trigger other,
> non-reversible actions. What did the forms developers think by doing
> this ?
>
> Walter
>
> walter.zimmer_at_rz.uni-ulm.de
> Forms 4.5 developer
>
>