Solved

List Items Clear current label

Posted on 2004-04-07
4
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

749 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