Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: exec() type functionality?
Topic Summary:
Created On: 20-Oct-2004 18:45
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 20-Oct-2004 18:45
User is offline View Users Profile Print this message


Shawn Stepper

Posts: 96
Joined: 6-Aug-2004

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
Report this to a Moderator Report this to a Moderator
 20-Oct-2004 19:23
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Search in this forum for keyword eval
Report this to a Moderator Report this to a Moderator
 20-Oct-2004 21:18
User is offline View Users Profile Print this message


Shawn Stepper

Posts: 96
Joined: 6-Aug-2004

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
Report this to a Moderator Report this to a Moderator
 21-Oct-2004 15:09
User is offline View Users Profile Print this message


Dirk Plaschke

Posts: 103
Joined: 17-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 21-Oct-2004 16:00
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 21-Oct-2004 16:11
User is offline View Users Profile Print this message


Antonio Norkus

Posts: 109
Joined: 28-Jun-2003

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.
Report this to a Moderator Report this to a Moderator
 21-Oct-2004 17:04
User is offline View Users Profile Print this message


Shawn Stepper

Posts: 96
Joined: 6-Aug-2004

That sounds like exactly what I need. Unfortunately, createButtonBar is not documented.

-------------------------
Shawn Stepper
shawn.e.stepper@wellsfargo.com
Report this to a Moderator Report this to a Moderator
 22-Oct-2004 15:14
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

#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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.