Solved

List Items Clear current label

Posted on 2004-04-07
4
302 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

776 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