![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Delete element in multiList Topic Summary: Created On: 25-Apr-2005 16:49 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Please help in deleting selected element in the multiList.
// show ID dialog string dummyListID[] = {"ABC", "DEF", "GHI", "JKL", "MNO"} DB Delete_Dialog = create ("Delete List", styleFloating|styleCentred) DBE DelIDList = multiList (Delete_Dialog, "Delete ID", 200, 10, dummyListID) // Update ID to the current Module void updateIDs (DB Delete_Dialog) { hide (Delete_Dialog) // delete selected element here, but how??? } apply (Delete_Dialog, "Update IDs", updateIDs) show (Delete_Dialog) |
|
![]() |
|
![]() |
|
You need to use a Skip list to manage entries that are displayed.
Skip list key is index position in the list view. 1. populate skip list with entries for the multiList. 2. call a refresh function (written by you) that empties the multiList and then repopulates it from the skip list. // e.g. something like this refresh() { empty(myList) for i in mySkip do { insert(myList, i, "") set(myList, i, column, (string key mySkip)) } } To delete an entry, delete it from the skip list first and then call your refresh function again. Hope this helps. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Delete element in multiList
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.