![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Trigger email for selected users across a module Topic Summary: Playing with fire :-) Created On: 27-Sep-2008 09:25 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi All,
I am developing a dxl code, which will trigger email if there is any change in the attribute value. Now I have attribute called Status & this value is new, progress & completed. Let me try to explain, what I am doing here.... Here ismy trigger code: Trigger t = trigger("Trigger", module->modName->attribute->(string key skipAttributes), post,save, 10, readFile "D:\\triggers/Userlist 1.8.dxl>") I have 2 dxl code 1. Select Attributes.dxl [Dialog box to display Attributes across module level only] 2. Userlist 1.8.dxl [Dialog box to display user & groups across the module level only] Select Attributes.dxl will display the list of attributes across the module in a dialog box, so I can select any one of attributes and Apply trigger & then I close the module. If i open the module again to change the value of the attributes, immediately it will bring the include file (Userlist 1.8.dxl), where I can select particular user / group to send email. This code is working fine for me. Now, is there a way to trigger.. like if i select the Attribute Status from New to Progress it should always send email to selected users & "ABC groups" & from progress to completed should always send email to selected users & "XYZ groups".. . We have plenty of modules & more than 100 users. I dont wish all users to select any groups to send email. I want to automate this provess. If users changes the value it should automatically send email to the particular groups which was selected and triggered by Administrators. Any help Appreciated.. Thanks in advance. Please let me know, if you didnt understand my question.... Thanks! |
|
![]() |
|
![]() |
|
Last call, Does anyone have answer for my Question?
Thanks Murugaraj S |
|
![]() |
|
![]() |
|
Not sure what you are asking, but let me guess: You want there to be one user group associated with each of a few attributes. When any such attribute changes in your module, you want the trigger code to send an email to each member of the group associated with that attribute.
Sounds like you will end up sending a BUNCH of emails, one each time any such obj-attr value changes. Anyway, yes this can be done. You can get the name of the attribute being modified by the trigger, I think the attrDef(Trigger) command will do that. By naming conventions you can build the name of the Group, e.g. "SendEmail_<NameAttr>". You can turn that group name into a Group Handle, then loop through all the User members of that Group. - Louie |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.