![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: exec() type functionality? Topic Summary: Created On: 20-Oct-2004 18:45 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I would like to create a DBE button that launches another DXL program. Is there a way to do this, like some kind of exec() call? I don't want to have to include the entire DXL program just so I can call it from the button.
------------------------- Shawn Stepper shawn.e.stepper@wellsfargo.com |
|
![]() |
|
![]() |
|
Search in this forum for keyword eval
|
|
![]() |
|
![]() |
|
That's not quite what I am looking for. I'm thinkg more something like:
open(some DXL file) exec(a function in that file) Basically, I want a button that does the same thing as selecting a DXL program from a menu. ------------------------- Shawn Stepper shawn.e.stepper@wellsfargo.com |
|
![]() |
|
![]() |
|
I think, it is not possible to call only a function from a script.
Perhaps, this could be done by - build a 'runString' with i.e. "#include <../scriptOfChoice.dxl>" - if button is pushed, add line with known function to the 'runString' (and w/ parameters?) - eval(runString) dirk. ------------------------- Dirk Plaschke |
|
![]() |
|
![]() |
|
Is the following what you are looking for:
1. Browse for dxl file and select it. 2. Get presented with a list of functions within that file. 3. Select the function to run. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
The description for the function "createButtonBar", states that it may applied to a user-defined Dialog Box, though I haven't tried creating menus or button bars for a DB.
One of the "createItem" functions allows you to pass the DXL file you want to execute when the menu/button bar is selected. |
|
![]() |
|
![]() |
|
That sounds like exactly what I need. Unfortunately, createButtonBar is not documented.
![]() ------------------------- Shawn Stepper shawn.e.stepper@wellsfargo.com |
|
![]() |
|
![]() |
|
#including within a function doesn't work since DXL only allows "global" variables declared in the MAIN program: you cannot have nested variable context. So if the other *.dxl has global variables in it, you'll get DXL errors if you #include it in some function in the 2nd *.dxl.
- Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
exec() type functionality?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.