Form 10g: Problem with SET_ITEM_PROPERTY [message #393335] |
Sat, 21 March 2009 13:28 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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 #393388 is a reply to message #393339] |
Sun, 22 March 2009 08:46 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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.
|
|
|
|
|
|
|