how to lock a text item [message #79695] |
Wed, 03 July 2002 01:56 |
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 #79721 is a reply to message #79695] |
Thu, 04 July 2002 21:38 |
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
|
|
|
|