Home » Developer & Programmer » Forms » Change Item_Item at Run time (Oracle Forms 10g Windows Xp)
Change Item_Item at Run time [message #553984] Wed, 09 May 2012 09:48 Go to next message
mvmkandan
Messages: 68
Registered: May 2010
Location: Trivendrum
Member
Hi,

Is it possible to change the item_type property of an item at run time.

I have one text item and i need to lock(Read only) that item. I hope we can change the ENABLED property or by changing the ITEM_TYPE as DISPLAY_ITEM.

How to change the Item_Type to DISPLAY_ITEM from TEXT_ITEM at run time or else is there any other way except ENABLED property to male the field as READONLY.

Thanks
Veera
Re: Change Item_Item at Run time [message #553986 is a reply to message #553984] Wed, 09 May 2012 10:15 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
you can change enabled, or set update_allowed and insert_allowed to false.
You can not change item type.
Re: Change Item_Item at Run time [message #554018 is a reply to message #553986] Wed, 09 May 2012 15:35 Go to previous message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Just make sure to navigate out of that item (as you can't disable current item).
Previous Topic: DELETE_RECORD & CLEAR_RECORD
Next Topic: WHEN-BUTTON-PRESSED
Goto Forum:
  


Current Time: Fri Jul 05 22:39:07 CDT 2024