Solved

List Items Clear current label

Posted on 2004-04-07
4
296 Views
Last Modified: 2013-12-12
Hi,
    Does anybody knows how to clear the existing label of an Item List? I know Clear_List Function...What I mean is after I have cleared my Item List still the current label still exist....anyone has an idea?

regards
0
Comment
Question by:GoodHands_Delphi
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
musdu earned 20 total points
ID: 10776813
Hi

if "Required" property of your list istem is "NO", Clear_list built-in clears all list items. But if it is "YES", it does not clear current label. So first set "Required" property to "NO" then clear list.

Set_Item_Property('MYLISTITEM', REQUIRED, PROPERTY_FALSE);
Clear_List('MYLISTITEM');

regards.
0
 

Author Comment

by:GoodHands_Delphi
ID: 10777515
hi
0
 

Author Comment

by:GoodHands_Delphi
ID: 10777532
hi
  I tried your solution but it seems nothing happened...still current label exists once i press button for refresh...I have set required to NO and then try SET_ITEM_PROPERTY..by the way I use combo box for my list style..FYI....tnx...appreciate for you reply...


regards
0
 
LVL 6

Expert Comment

by:musdu
ID: 10777726
Hi,

set "Initial Value" property of your list item to NULL during design time (If you need an initial value, assign it in when-new-form-instance trigger)

regards
----------------------
For a Poplist or T-list-style list item, CLEAR_LIST will not clear the default value element or the other values element from the list if they do not meet the criteria specified for deleting these elements with DELETE_LIST_ELEMENT.

When either the default value or other values element cannot be deleted, CLEAR_LIST leaves these elements in the list and clears all other elements. Refer to the restrictions on DELETE_LIST_ELEMENT for more information.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now