Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Delete element in multiList
Topic Summary:
Created On: 25-Apr-2005 16:49
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 25-Apr-2005 16:49
User is offline View Users Profile Print this message


Ed Roland

Posts: 12
Joined: 13-Apr-2005

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)
Report this to a Moderator Report this to a Moderator
 26-Apr-2005 09:09
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.