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: Test Tracking Toolkit
Topic Summary: Initiating from DBE callbacks
Created On: 13-Jan-2009 14:21
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.
Answer This question was answered by Mark Williamson, on Tuesday, January 13, 2009 7:53 PM

Answer:
Hi David, That did the trick and I can now call the various T3 functions from a button call back.

Thanks

Mark
 13-Jan-2009 14:21
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi,

I want to initiate the 5 T3 functions from Button callbacks within a Dialog box rather than via the Tools menu. The existing T3 DXL files simply call the associated include file. Is it is possble to reference these include files from a button callback?

Thanks

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 14:58
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Below is the code in Formal.dxl that creates the menu options. So you need to go to those dxl files and see what they do. Then create your button callbacks to run the code in those files.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 15:14
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi David,

I have examined these DXL files previously and they simply reference the associated include file, ie #include <standard/testTracking/t3_setup.inc>. I can run this quite happily from a formal module dxl window but my issue is how do I call this functionality from a DBE callback? With the #include <standard/testTracking/t3_setup.inc> within a call back function a non local variable error is generated.

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 16:26
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

You cannot do an include for a button callback. You can try doing "eval_(runFile(<filename>);". You can also try "runFile(<filename>;". Use the dxl file for the filename not the inc file.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 16:51
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

Try

runStr("#include <standard/testTracking/t3_setup.inc>")

I would also protect the calls in the same way they are on the menu. e.g.

if (canPurgeObjectsMap == menuAvailable_)
{
runStr("#include <standard/testTracking/t3_setup.inc>")
}

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 17:31
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Thanks David and Tony,

One step forward and two back.... I'm trying to make the call from within a DXL call back function, but runStr or runFile return an undeclared variable error. The DXL ref manual seems to relate these perms to external applications calling DOORS.

Cheers

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 18:22
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Sorry. That should have been "eval_(readFile(<filename>)"

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 13-Jan-2009 19:53
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Answer Answer
Hi David, That did the trick and I can now call the various T3 functions from a button call back.

Thanks

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
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.