Home » Developer & Programmer » Forms » How to Disable or Hide List Item (Poplist)
How to Disable or Hide List Item (Poplist) [message #289519] Sun, 23 December 2007 05:26 Go to next message
bbaz
Messages: 138
Registered: April 2007
Senior Member

Hi All,

Is there a built-in Property for a List Item of type PopList to DISABLE or HIDE that Drop Down List.

I have tried:

set_item_property('item_name',VISIBLE,PROPERTY_FALSE);

or 

set_item_property('item_name',ENABLED,PROPERTY_FALSE);


but i am getting FRM-41016 error.

Thanks,
Baz
Re: How to Disable or Hide List Item (Poplist) [message #289521 is a reply to message #289519] Sun, 23 December 2007 08:21 Go to previous messageGo to next message
timor
Messages: 12
Registered: December 2007
Location: egypt
Junior Member
yes
you can try to use it
it will work
what is your problem
Re: How to Disable or Hide List Item (Poplist) [message #289522 is a reply to message #289519] Sun, 23 December 2007 08:23 Go to previous messageGo to next message
timor
Messages: 12
Registered: December 2007
Location: egypt
Junior Member
you may be navigate from the list item and apply the property
babyay
icon14.gif  Re: How to Disable or Hide List Item (Poplist) [message #289575 is a reply to message #289522] Mon, 24 December 2007 02:35 Go to previous messageGo to next message
bbaz
Messages: 138
Registered: April 2007
Senior Member
Thanks Timor,

Yes, I just had to Navigate to Another Item in the Block before Disabling or Hiding:

GO_ITEM('BlockA.anotherItem'); 
set_item_property('BlockA.LISTitem',VISIBLE,PROPERTY_FALSE);


and Work Fine Smile

Cheers,
Baz
Re: How to Disable or Hide List Item (Poplist) [message #361478 is a reply to message #289519] Wed, 26 November 2008 10:18 Go to previous message
AhmedOnLine
Messages: 1
Registered: October 2005
Location: Egypt
Junior Member
Hii all
the problem that u try to enable item already enabled
or make item VISIBLE and the item already VISIBLE

so u can fix that by check item status before using set_item_property

like
IF Get_item_property ('ITEM_NAME',enabled) = 'FALSE' THEN
set_item_property('ITEM_NAME',enabled,property_true );
END IF;


CHANGE ITEM TO ENABLED IN CASE OF ITEM DISPALED ONLY

AND SAME to visible property

IF Get_item_property ('ITEM_NAME',visible) = 'FALSE' THEN
set_item_property('ITEM_NAME',visible,property_true );
END IF;

good luck
Previous Topic: How to populate listbox with data from database table?
Next Topic: Problem when closing the report in Oracle
Goto Forum:
  


Current Time: Tue Dec 06 12:12:28 CST 2016

Total time taken to generate the page: 0.05624 seconds