![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Help with Trigger Topic Summary: Does not seem like trigger is firing Created On: 8-Aug-2007 21:37 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello, trigger("Trigger Name", attribute->"Attribute Name", post, modify, 1, "dxlCode") |
|
![]() |
|
![]() |
|
Your "dxlCode" needs to be actual DXL code. See attached for an example. The DXL code starts in line #10 and ends in line #37. Take notice that back slashed in the code must be escaped with another back slash, as must double quotes. That is...
that is this: print "Help\n" becomes this: print \"Help\\"\" That's clumsy. The alternative is to write the DXL in a data file and have your deploy dxl do thisL string DXL = readFile("c:/MyStuff/MyCleverDXL.dxl"). Notice the use of "checkDXL" in line 39 to make sure that the DXL at least interprets without errors. Not sure what would happen if you attempt to create a new Trigger when its already there with the same name and parameters. Give it a try I believe you'll find the new one does NOT take hold. Not sure what will happen with your code if you run it outside of a module. I suppose it SHOULD take hold in the project and apply to all modules, but your 'level' should be explicit: project->module->all-attribute->"Attribute Name" if that's your intention. You probably want to run it from inside a module and apply it to THAT module only, in which case the deploy DXL should first check for a current module (as in the example). You also probably want to make it a pre modify attribute trigger. Post means the event is already over and you won't be able to find out which attribute fired. Your pre-attr trigger should issue: set(trigPreConPass) unless it really figures to prevent the change, in which case it issues set(trigPreConFail). - Louie |
|
![]() |
|
![]() |
|
Alright, thank you. I think I understand it all a bit better. For right now I'm just trying to use it on one module, and I actually do have my code in a seperate file. So I will give it a few more shots, and thank you!
|
|
![]() |
|
![]() |
|
<EDIT> Everything is working well now thank you for the help again Louie Edited: 9-Aug-2007 at 21:47 by James Cesari |
|
![]() |
|
![]() |
|
Hi,
I wrote a DXL dcript to display "Non System Gererated attributes". I am displaying the Attribute List in a Dilalog Box, Now I want to apply triggers to only selected Attributes from the dialog box, not for "all". Could you help me? Trigger t = trigger("Test",module->current Module ->attribute-> "Selected Name", pre, open, 10, "#include <triggers/projOpen>") |
|
![]() |
|
![]() |
|
I found answer for my question.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Help with Trigger
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.