![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: remove items from listView Topic Summary: Created On: 10-Nov-2004 21:40 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You will need to empty the list view and then insert the items that were no deleted, otherwise you are going to leave empty rows. I would use a skip list to maintain the items that I want to display in the list view and use a refresh fucntion that empties the listview and then inserts rows from the skip list. When the user clicks on the remove button, get the list of selected items using the for "string in list do" loop or "for selection in list do" loop and remove the corresponding entries from the skip list. Then call your refresh function to refresh the display. | |
![]() |
|
I know I can remove all items in a listView with the emptyList(DBE listView) function.
Is there anyway to remove just the items that are selected in the listView? For example, say I have a listView with 5 entries. The user selects 3 and clicks a remove button, I want the callback on the remove button to be able to remove just the 3 selected entries from the listView. Thanks, --Andy |
|
![]() |
|
![]() |
|
You will need to empty the list view and then insert the items that were no deleted, otherwise you are going to leave empty rows.
I would use a skip list to maintain the items that I want to display in the list view and use a refresh fucntion that empties the listview and then inserts rows from the skip list. When the user clicks on the remove button, get the list of selected items using the for "string in list do" loop or "for selection in list do" loop and remove the corresponding entries from the skip list. Then call your refresh function to refresh the display. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
quote: That is what I was afraid of. Thanks for your help Tony! --Andy |
|
![]() |
|
![]() |
|
Is it not possible to use the 'for position in list view' loop and simply delete (option or item) in each returned position?
eg. for i in listView do { delete (listView,i) } |
|
![]() |
|
![]() |
|
A little bit late, but if it can help someone...
The deletion must be done in a decreasing order, because if you do it in increasing order, the value i is not correct anymore. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
remove items from listView
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.