![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Set selected value in choice DBE Topic Summary: Created On: 14-Sep-2006 17:16 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: The attached code snippet contains a function which will allow you to specify a DBE Choice element and string value, it will parse the list, and if the value is found it will set the selection and return true. If the selection is not found, the function call will return false. If you call this function on a non-compatible DBE element, it will produce a run-time error. <element> is the Choice DBE element, and <value> is the string value you wish to set. -Dennis | |
![]() |
|
Is there a set method that will select a specific value in a choice DBE?
I want to be able to have a callback function that automatically selects a value in a choice drop-down list. I notice there's a set function that will do this for a list DBE, but it doesn't seem to work for choice DBEs. Thanks. - Brian ------------------------- Brian Abts Software Engineer I AAI Corp. |
|
![]() |
|
![]() |
|
The attached code snippet contains a function which will allow you to specify a DBE Choice element and string value, it will parse the list, and if the value is found it will set the selection and return true. If the selection is not found, the function call will return false. If you call this function on a non-compatible DBE element, it will produce a run-time error.
<element> is the Choice DBE element, and <value> is the string value you wish to set. -Dennis |
|
![]() |
|
![]() |
|
Ah! I missed set(dbe choice, int index) in the DXL reference guide. Your code just made me check the guide again and then I found it on page 420. I feel silly now.
Thanks for the help! ------------------------- Brian Abts Software Engineer I AAI Corp. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Set selected value in choice DBE
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.