![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.