Home » Developer & Programmer » Forms » how to lock a text item
how to lock a text item [message #79695] Wed, 03 July 2002 01:56 Go to next message
Xavier
Messages: 11
Registered: March 2002
Junior Member
I am trying to lock text items, so the user can't change the displayed values. those text items are linked to LOV, and are filled automatically. But what I want to do is display the values in a way that the user can't click on the item and change them. I tried to change the insertion and update properties of the text item, but this way I get a FRM-40200 (item protected against changes). How can I do?
Re: how to lock a text item [message #79696 is a reply to message #79695] Wed, 03 July 2002 02:11 Go to previous messageGo to next message
nik
Messages: 55
Registered: January 2002
Member
hi,

set_item_property('item',enabled,property_false);

refer to HLP system in Forms for various item_properties.

chow.
n.
Re: how to lock a text item [message #79721 is a reply to message #79695] Thu, 04 July 2002 21:38 Go to previous messageGo to next message
Ravi
Messages: 251
Registered: June 1998
Senior Member
There are 2 ways of doing this.
First is
Change the mouse navigable and keyboard navigable properties to no. In this way user will not be able to navigate to the item.

Second is
set the value of :system.message_level := 15 in when new item instance trigger and change it back to 0 in post -text-item. In this way if user will try to change the value, will not get any message like FRM-40200 (item protected against changes).

let me know if this works
Re: how to lock a text item [message #79833 is a reply to message #79695] Wed, 17 July 2002 02:26 Go to previous message
Shahid Nadeem
Messages: 8
Registered: July 2002
Junior Member
change the text items to display item.
Previous Topic: [very Urgent]Need to populate a global Temporary Table or Cursor
Next Topic: making a poplist start on first item
Goto Forum:
  


Current Time: Fri Apr 19 02:48:48 CDT 2024