Home » Developer & Programmer » Forms » Form 10g: Problem with SET_ITEM_PROPERTY (Forms 10g)
Form 10g: Problem with SET_ITEM_PROPERTY [message #393335] Sat, 21 March 2009 13:28 Go to next message
mr_nice_guy
Messages: 10
Registered: September 2008
Junior Member
Hi,

I am trying to set the property of a text item in my form to false using SET_ITEM_PROPERTY.

My code goes something like this:

SET_ITEM_PROPERTY('TEXT1',ENABLED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('TEXT1',NAVIGABLE,PROPERTY_FALSE);

But when this code executes my application gets stuck(hangs) and the mouse cursor changes to the hour glass.There is no other option but to end the session and relogin.

The problem is not encountered if I change the code to :

SET_ITEM_PROPERTY('TEXT1',INSERT_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('TEXT1',UPDATE_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('TEXT1',NAVIGABLE,PROPERTY_FALSE);

I am clueless about such behaviour.Can anyone help me out??

Thanks in advance.
Re: Form 10g: Problem with SET_ITEM_PROPERTY [message #393337 is a reply to message #393335] Sat, 21 March 2009 15:13 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
What happens if you remove the "navigable" part? When the item is DISABLED, it is not navigable anyway.
Re: Form 10g: Problem with SET_ITEM_PROPERTY [message #393339 is a reply to message #393335] Sat, 21 March 2009 15:36 Go to previous messageGo to next message
oracle123
Messages: 56
Registered: March 2009
Member
Check out the following link:
http://www.oracle.com/webapps/online-help/forms/10g/state/content/navId.3/navSetId._/vtTopicFile.f1_help|propsd_f|enabled~html/

It clearly explains that "When Enabled property is No, an item is always non-Keyboard Navigable. At runtime, when the Enabled property is set to PROPERTY_FALSE, the Keyboard_Navigable property is also set to PROPERTY_FALSE".

I think you should be good if you just set the ENABLED property to FALSE as mentioned by Littlefoot.

- Scott
Re: Form 10g: Problem with SET_ITEM_PROPERTY [message #393388 is a reply to message #393339] Sun, 22 March 2009 08:46 Go to previous messageGo to next message
mr_nice_guy
Messages: 10
Registered: September 2008
Junior Member
Initially the code was just

SET_ITEM_PROPERTY('TEXT1',ENABLED,PROPERTY_FALSE);

During runtime when this code executed,it tried setting some of the other properties as false.This I guess was the reason for the application to get stuck.I felt that by explicitly setting the other properties (viz NAVIGABLE,REQUIRED,UPDATEABLE etc) to false would resolve my problem.Therefore I introduced code for making NAVIGABLE property to false.Even I tried various other combinations with the ENABLED property.But that didn't help.

One thing I would like to mention is that it happens only in forms 10g whereas in forms 6i this code simply works fine.I was wondering if its some problem with forms 10g version.
Re: Form 10g: Problem with SET_ITEM_PROPERTY [message #394929 is a reply to message #393388] Mon, 30 March 2009 18:54 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have you solved your problem?

David
icon5.gif  Re: Form 10g: Problem with SET_ITEM_PROPERTY [message #410749 is a reply to message #394929] Tue, 30 June 2009 01:51 Go to previous messageGo to next message
sundarj
Messages: 2
Registered: June 2009
Location: Canberra
Junior Member
Hi David,
When I set Enabled to No, it grays out the item. But I want the item to appear normally. So, I tried to put mouse_navigate, navigable, update_null and update_allowed property to false. But still user able to click on the List item.. But they can not change the value. Is it possible to enable the item without changing the color.
Thanks in Advance,
Sundar
Re: Form 10g: Problem with SET_ITEM_PROPERTY [message #410877 is a reply to message #410749] Tue, 30 June 2009 20:27 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
You ask: "Is it possible to enable the item without changing the color." Do you mean 'disable'? If so, then no.

In the 'show_lov' trigger test whether the item has 'update allowed' and if not, then just do a 'bell' and 'raise form_trigger_failure'.

David
Re: Form 10g: Problem with SET_ITEM_PROPERTY [message #410880 is a reply to message #410877] Tue, 30 June 2009 21:07 Go to previous message
sundarj
Messages: 2
Registered: June 2009
Location: Canberra
Junior Member
Hi David,
Sorry for the typo. I want to disable the item without changing the color... Thanks for your reply.
Sundar
Previous Topic: catching FORM_TRIGGER_FAILURE on any form x 2 (merged)
Next Topic: template
Goto Forum:
  


Current Time: Mon Feb 10 04:32:43 CST 2025