Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Change a Property of an Item
Hi !
I suppose you are using developer/2000 (?!?!?). To change the enabled (or any other) property for some item, you have to use the Set_Item_Property() function ...
Something like this
Enable:
Set_Item_Property('MYBUTTON',ENABLED,PROPERTY_TRUE);
Disable:
Set_Item_Property('MYBUTTON',ENABLED,PROPERTY_FALSE);
For some edit field you may have to set the navigable/updateable properties also to allow focus on these fields ...
Set_Item_Property('MYFIELD',UPDATEABLE,PROPERTY_TRUE); Set_Item_Property('MYFIELD',NAVIGABLE,PROPERTY_TRUE);
I have actually used functions (below) to enable/disable or show/hide items.
FUNCTION DisableItem( ItemName VARCHAR2 ) RETURN BOOLEAN IS DItem Item;
BEGIN
DItem := Find_Item(ItemName);
If Not Id_Null(DItem) Then
If Get_Item_Property(DItem,ENABLED) = 'TRUE' Then
Set_Item_Property(DItem,ENABLED,PROPERTY_FALSE);
-- Enable ... -- If Get_Item_Property(DItem,ENABLED) = 'FALSE' Then -- Set_Item_Property(DItem,ENABLED,PROPERTY_TRUE);
End If;
Else
Return FALSE;
End If;
Return TRUE;
END;
Tom Söderberg
Virginia K. Leung wrote in article <3415E090.4FD7_at_uoft02.utoledo.edu>...
>Hi,
>
>I have a hard time to change a property of an item programmatically,
>such as I want to change the Enabled property on an item on click of a
>push button.
>
>Assuming in the Visual Basic programming, we can do the following:
>
>txtExample.enabled = False
>
>But how do I do in ORACLE? Please help, comments are greatly
>appreciated!
>
>Virginia
Received on Thu Sep 11 1997 - 00:00:00 CDT
![]() |
![]() |