![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Change/update array populating a DBE List? Topic Summary: Cannot change or update DBE List values? Created On: 5-Sep-2006 19:28 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Sorry for taking so long to reply and close out this question. Tony, you were right on the money in using listView DBEs instead of the choice DBEs. It did take some experimentation to figure out that I needed to add the columns to the listView before I could insert any items, but I got it all worked out. I'm attaching the code that creates two lists (Available and Selected) and allows you to move items between the two utilizing Skip lists. | |
![]() |
|
Here's my situation. I have a Dialog Box with a pair of DBE lists on them -- one with "available" items and the other for "selected" items. A user will select an item from the "available" DBE list, press a DBE button, then the selected item is to move from the "available" list to the "selected" list (and vise-versa).
In my code I'm keeping two Skip lists -- one to hold the "available" items and another to hold the "selected" items. When I crank up the DXL script, a subroutine searches through various Modules and creates a Skip list of the "available" items. Another subroutine takes both the "available" Skip values and "selected" Skip values and transfers them into string arrays (lower-case 'array', not the dynamic upper-case 'Array') that are then set() as the populating values in the DBE lists. When one of the DBE buttons is pressed, a third subroutine is called to move the selected item from the "available" Skip to the "selected" Skip, then calls the array-creation and DBE list reset subroutine. The problems are that when the DB is brought up the "available" list is not populated -- the script is definitly populating the Skip list with Module data, but it's never making it to the screen. I've also tested my "move" subroutine (attached to the buttons) in a driver program and it too doesn't work. I keep getting "DBE is not a choice" errors in the DXL output window. I'm attaching some psuedo-code of my DXL so you can see the structure. Maybe I'm doing this in a more complicated way than is necessary, if so please let me know and I'll be more than happy to change it! I just want this to work!! Thanks. -dc |
|
![]() |
|
![]() |
|
You cannot initialise a listView DBE with an array - you can only do this with choice DBEs - hence the error you are getting.
Dump the arrays and use the skip list on their own. Assuming that your skips are initialised, add the items to th relevant list using some thing like the attached. This way you enter the items in the listView in the exact same order as in the skip list. When you move items from one list to another, delete it from one skip and add it to the other. Before adding items using insert, call empty(dbeList) to remove all entries. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Sorry for taking so long to reply and close out this question. Tony, you were right on the money in using listView DBEs instead of the choice DBEs. It did take some experimentation to figure out that I needed to add the columns to the listView before I could insert any items, but I got it all worked out. I'm attaching the code that creates two lists (Available and Selected) and allows you to move items between the two utilizing Skip lists.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Change/update array populating a DBE List?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.