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: Indicating where a DXL script execution started?
Topic Summary: How to tell if DXL script was started by Attr DXL or manually or trigger, etc
Created On: 15-Aug-2008 21:42
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 Louie Landale, on Wednesday, August 27, 2008 1:36 PM

Answer:
You may recall that variables 'obj' and 'attrDXLName' are predefined variables for use in Layout and Attr DXL.

I think the following is correct:

if ( null obj) then this is not a layout nor attrDXL
if (!null obj and null attrDXLName) then this is a Layout
if (!null obj and !null attrDXLName) then this is an AttrDXL

if (!null (current Trigger)) then this code is running in a persistent Trigger

Don't know how to determine if code is running in a Dynamic trigger.

If its not a Layout, AttrDXL, nor Trigger then it was started via Menu, the DXL Window, as part of CLI, DXL, or BATCH command line options, or is code run via 'eval_' or 'evalTop_'.

- Louie
 15-Aug-2008 21:42
User is offline View Users Profile Print this message


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

If memory serves me correctly, there was a posting on the forum some time ago that indicated how to tell where a given DXL script execution began.
I have tried a few searches but can't seem to find the original posting.
I think it indicated a way to tell if the execution a given script was started in the DXL task window, or from an attributeDXL, or from a menu, or possibly from a trigger.
Does anybody remember this thread and know where it is located?
Thanks All
Dan
Report this to a Moderator Report this to a Moderator
 18-Aug-2008 23:21
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
You may recall that variables 'obj' and 'attrDXLName' are predefined variables for use in Layout and Attr DXL.

I think the following is correct:

if ( null obj) then this is not a layout nor attrDXL
if (!null obj and null attrDXLName) then this is a Layout
if (!null obj and !null attrDXLName) then this is an AttrDXL

if (!null (current Trigger)) then this code is running in a persistent Trigger

Don't know how to determine if code is running in a Dynamic trigger.

If its not a Layout, AttrDXL, nor Trigger then it was started via Menu, the DXL Window, as part of CLI, DXL, or BATCH command line options, or is code run via 'eval_' or 'evalTop_'.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.