![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Choice Box problems Topic Summary: Created On: 13-Aug-2004 15:29 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You can use the set command as follows DB db DBE dbe string choices[] = {"one", "two"} string newchoices[] = {"one", "two", "three"} void doChoices(DB db) { set(dbe, newchoices) } db = create("") dbe = choice(db, "choices", choices, 0) apply(db, doChoices) show db Didn't read your question properly! To dynamically add choices you may want to use insert() as follows insert(dbe, noElems(dbe), "New Choice") | |
![]() |
|
I am trying to dynamically add an entry to the end of a Standard Choice box. Initially I fill the Choicebox from doors, and display the information. In the course of the application the user can add new entry via a DXL form, I however have not been able to find a way to add this new information to the Choice Box short of destroying the DXL form and recreating it. Is this even possible under doors ? |
|
![]() |
|
![]() |
|
You can use the set command as follows
DB db DBE dbe string choices[] = {"one", "two"} string newchoices[] = {"one", "two", "three"} void doChoices(DB db) { set(dbe, newchoices) } db = create("") dbe = choice(db, "choices", choices, 0) apply(db, doChoices) show db Didn't read your question properly! To dynamically add choices you may want to use insert() as follows insert(dbe, noElems(dbe), "New Choice") ------------------------- Tony Goodman http://www.smartdxl.com Edited: 13-Aug-2004 at 15:50 by Tony Goodman |
|
![]() |
|
![]() |
|
Thanks, seemed that there had to be away to do this
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Choice Box problems
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.