How to Disable or Hide List Item (Poplist) [message #289519] |
Sun, 23 December 2007 05:26  |
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 #361478 is a reply to message #289519] |
Wed, 26 November 2008 10:18  |
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
|
|
|