![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Dialog box Topic Summary: how to initialize variables dynamically Created On: 16-Feb-2007 13:58 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Dxl Friends -
I have some global variables which i initialize and use in my script.Is there a way to intialize these variables dynamically so that when i run the dxl the gui should pop up to ask for the values of these variables and initialize ,instead of hardcoding these variables in the code.. can we use dialog box ? does any one have sample code. string file_name = "D:\\Data\\RTM build 1.e.xls" string funcArea = "Functional Area" string attr_name = "Requirement?" string attr_testable = "Testable/Non Testable Requirements" string attr_release = "Release" string test_id = "Data Scenario ID" string test_name = "Plan: Test Name" string test_status = "Status" string build_attr = "Build" Thanks of any help |
|
![]() |
|
![]() |
|
Here is simple example from help file if you look up field
DB fieldBox = create "Get Zip" DBE zip = field(fieldBox, " Zipcode: ", "", 12) void unzip(DB fieldBox) { string zipcode = get zip print zipcode } // unzip apply(fieldBox, "Lookup", unzip) show fieldBox |
|
![]() |
|
![]() |
|
Thanks Ron! |
|
![]() |
|
![]() |
|
You can make zipcode global
The last statement executed is 'show fieldBox' -- so anything to be executed in this example has to be in the area around the line print zipcode. If you want print "Test" to work change show fieldBox to block fieldBox. Edited: 17-Feb-2007 at 17:59 by ron lewis |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Dialog box
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.